Skip to content

Commit d6f40b6

Browse files
committed
fix: correct server condition in withStorybook function, see #877 (comment)
- Updated the condition to disable experimental MCP settings when the server is not present, ensuring proper configuration behavior. - This change enhances the reliability of the withStorybook function in various environments. All tests pass successfully.
1 parent 34221cc commit d6f40b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/src/withStorybook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function withStorybook<T>(config: T, options: WithStorybookOptions = {}):
8787
);
8888
const settings = { ...options };
8989

90-
if (server) {
90+
if (!server) {
9191
settings.experimental_mcp = false;
9292
}
9393

0 commit comments

Comments
 (0)