Skip to content

Commit

Permalink
fix(devtools): fix issue that prevented booleans from being parsed pr…
Browse files Browse the repository at this point in the history
…operly
  • Loading branch information
AleksanderBodurri authored and mgechev committed Feb 27, 2020
1 parent 6727d7e commit 1fc39d9
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -110,7 +110,11 @@ export class PropertyEditorComponent implements OnChanges, AfterViewChecked {
if (value === 'undefined') {
return undefined;
} else {
return JSON.parse(JSON.stringify(value));
try {
return JSON.parse(value);
} catch {
return '' + value;
}
}
}

Expand Down

0 comments on commit 1fc39d9

Please sign in to comment.