Skip to content

Commit

Permalink
fix: account for non string
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 7, 2020
1 parent d77775c commit 9c93794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/core/src/smartControls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
import { ComponentControl, ComponentControls, ControlTypes } from './controls';
import { PropType, PropTypes } from './components';

const cleanQuotes = (txt?: string) => (txt ? txt.replace(/['"]+/g, '') : txt);
const cleanQuotes = (txt?: string) =>
typeof txt === 'string' ? txt.replace(/['"]+/g, '') : txt;

const handledTypes = [
'boolean',
Expand Down

0 comments on commit 9c93794

Please sign in to comment.