We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2febe55 commit d759ad1Copy full SHA for d759ad1
website/src/component/Preview/index.js
@@ -28,7 +28,12 @@ const Markdown = styled(MarkdownPreview)`
28
const getBooleanValue = (param, field, defaultValue) => {
29
if (Reflect.has(param, field)) {
30
const newValue = Reflect.get(param, field);
31
- return newValue === 'true';
+ if (newValue === 'true') {
32
+ return true;
33
+ }
34
+ if (newValue === 'false') {
35
+ return false;
36
37
}
38
return defaultValue;
39
};
0 commit comments