diff --git a/packages/storybook/src/generators/configuration/configuration.ts b/packages/storybook/src/generators/configuration/configuration.ts index 70f25b7e5cc64..38f4c165a344f 100644 --- a/packages/storybook/src/generators/configuration/configuration.ts +++ b/packages/storybook/src/generators/configuration/configuration.ts @@ -53,7 +53,7 @@ export async function configurationGenerator( */ let storybook7 = - storybookMajorVersion() === 7 ?? rawSchema.storybook7Configuration; + storybookMajorVersion() === 7 || rawSchema.storybook7Configuration; if (storybookMajorVersion() === 6 && rawSchema.storybook7Configuration) { logger.error(