mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 16:51:09 +08:00
CHANGE prefer getCurrentParameter over getParameters
This commit is contained in:
parent
47d62ca8cb
commit
91e624b10f
@ -291,7 +291,7 @@ export const init: ModuleFn = ({
|
||||
const sourceType = getSourceType(source);
|
||||
|
||||
if (sourceType === 'local') {
|
||||
const options = fullAPI.getParameters({ storyId, refId: undefined }, 'options');
|
||||
const options = fullAPI.getCurrentParameter('options');
|
||||
|
||||
if (options) {
|
||||
fullAPI.setOptions(options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user