From 2576b750594ac78097fab83a101c21b2fd1925fc Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 28 Jan 2021 14:05:32 +0200 Subject: [PATCH] fallback if shadows aren't defined --- src/services/style_setter/style_setter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index 0fb8f92aaf..a2bba67bce 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -244,7 +244,7 @@ export const generateShadows = (input, colors) => { } const cleanInputShadows = Object.fromEntries( - Object.entries(input.shadows) + Object.entries(input.shadows || {}) .map(([name, shadowSlot]) => [ name, // defaulting color to black to avoid potential problems