Skip to content

Commit aedf7d1

Browse files
committed
Make stories exportable
1 parent 2887028 commit aedf7d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/client-api/src/client_api.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export default class ClientApi {
137137
let hasAdded = false;
138138
const api = {
139139
kind,
140+
stories: {}
140141
};
141142

142143
// apply addons
@@ -163,6 +164,7 @@ export default class ClientApi {
163164
});
164165
}
165166

167+
api.stories[storyName] = storyFn;
166168
const fileName = m && m.id ? `${m.id}` : undefined;
167169

168170
const { hierarchyRootSeparator, hierarchySeparator } = this.getSeparators();

0 commit comments

Comments
 (0)