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 43f40d5 commit 647adebCopy full SHA for 647adeb
website/src/component/Preview/index.js
@@ -28,12 +28,7 @@ const Markdown = styled(MarkdownPreview)`
28
const getBooleanValue = (param, field, defaultValue) => {
29
if (Reflect.has(param, field)) {
30
const newValue = Reflect.get(param, field);
31
- if (newValue === 'true') {
32
- return true;
33
- }
34
- if (newValue === 'false') {
35
- return false;
36
+ return newValue === 'true';
37
}
38
return defaultValue;
39
};
0 commit comments