mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
make stylistic code change
This commit is contained in:
parent
2f5cfe73af
commit
15fa09b070
@ -331,10 +331,12 @@ export const init: ModuleFn<SubAPI, SubState> = (
|
||||
const initialState: SubState['refs'] = refs;
|
||||
|
||||
if (runCheck) {
|
||||
Object.entries(refs).reduce(async (acc, [id, ref]) => {
|
||||
await acc;
|
||||
await api.checkRef({ ...ref!, stories: {} } as API_SetRefData);
|
||||
}, Promise.resolve());
|
||||
new Promise(async (resolve) => {
|
||||
for (const ref of Object.values(refs)) {
|
||||
await api.checkRef({ ...ref!, stories: {} } as API_SetRefData);
|
||||
}
|
||||
resolve(undefined);
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user