Fix storyshots issue

This commit is contained in:
Tom Coleman 2020-06-11 21:08:04 +10:00
parent 19ec1554f3
commit a936dd11b5

View File

@ -213,7 +213,7 @@ export default class StoryStore {
}
// If we didn't find a story matching the speficier, we always want to emit CURRENT_STORY_WAS_SET anyway
if (!foundStory) {
if (!foundStory && this._channel) {
this._channel.emit(Events.CURRENT_STORY_WAS_SET, this._selection);
}