diff options
| author | Henry Jameson <me@hjkos.com> | 2018-11-21 03:23:02 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2018-11-21 03:23:02 +0300 |
| commit | b7fb720c190385b887ee7d7c3c46936e9a603862 (patch) | |
| tree | 7e18e7dae4739294065a24c0390fe39d9b12338c | |
| parent | 73a9370710f46c0594eda01ac8fe016e87c7e18c (diff) | |
cleanup, cold-boot issue fixed
| -rw-r--r-- | src/services/style_setter/style_setter.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index 69a1b899..45e950f0 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -213,8 +213,7 @@ const generateColors = (input) => { } const generateRadii = (input) => { - console.log(input) - const radii = Object.entries(input.radii).filter(([k, v]) => v).reduce((acc, [k, v]) => { + const radii = Object.entries(input.radii || {}).filter(([k, v]) => v).reduce((acc, [k, v]) => { acc[k] = v return acc }, { |
