Skip to content

Commit

Permalink
ClientApi doesn't actually use the channel, so let's not require it
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Feb 20, 2018
1 parent 9250e98 commit add0964
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/core/src/client/preview/client_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@ const defaultDecorateStory = (getStory, decorators) =>
);

export default class ClientApi {
constructor({
channel,
storyStore = new StoryStore(),
decorateStory = defaultDecorateStory,
} = {}) {
// channel can be null when running in node
// always check whether channel is available
this._channel = channel;
constructor({ storyStore = new StoryStore(), decorateStory = defaultDecorateStory } = {}) {
this._storyStore = storyStore;
this._addons = {};
this._globalDecorators = [];
Expand Down

0 comments on commit add0964

Please sign in to comment.