Skip to content

Commit

Permalink
Fix TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Jul 27, 2023
1 parent 16eebcf commit 6c6b8eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/lib/core-server/src/presets/common-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ export const experimental_serverChannel = async (
throw new Error(`unable to find storybook main file in ${options.configDir}`);
const main = await readConfig(configFileName);
main.setFieldValue(['core', 'disableWhatsNewNotifications'], disableWhatsNewNotifications);
await fs.writeFile(main.fileName, printConfig(main).code);

await fs.writeFile(configFileName, printConfig(main).code);
if (isTelemetryEnabled) {
await telemetry('core-config', { disableWhatsNewNotifications });
}
Expand Down

0 comments on commit 6c6b8eb

Please sign in to comment.