Skip to content

Commit

Permalink
fix: smart controls default to true
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jan 6, 2021
1 parent a925206 commit c9ad5ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/store/src/serialization/transform-controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const getControls = (
})
.reduce((acc, key) => ({ ...acc, [key]: newControls[key] }), {});
const transformed = transformControls(storyControls, filteredControls);
const { smart = storyControls === undefined } = smartControls;
const { smart = true } = smartControls;
if (!story.component || !smart || story.smartControls === false) {
return transformControls(storyControls, filteredControls);
}
Expand Down

0 comments on commit c9ad5ff

Please sign in to comment.