mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Fix breaking change
This commit is contained in:
parent
eca7d66834
commit
e602b3c8e0
@ -144,7 +144,9 @@ export const init: ModuleFn = ({
|
||||
},
|
||||
getCurrentParameter: (parameterName) => {
|
||||
const { storyId, refId } = store.getState();
|
||||
return api.getParameters({ storyId, refId }, parameterName);
|
||||
const parameters = api.getParameters({ storyId, refId }, parameterName);
|
||||
// FIXME I don't know why this is needed
|
||||
return parameters || undefined;
|
||||
},
|
||||
jumpToComponent: (direction) => {
|
||||
const { storiesHash, storyId, refs, refId } = store.getState();
|
||||
|
Loading…
x
Reference in New Issue
Block a user