fallback if shadows aren't defined
This commit is contained in:
parent
11963de288
commit
2576b75059
@ -244,7 +244,7 @@ export const generateShadows = (input, colors) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const cleanInputShadows = Object.fromEntries(
|
const cleanInputShadows = Object.fromEntries(
|
||||||
Object.entries(input.shadows)
|
Object.entries(input.shadows || {})
|
||||||
.map(([name, shadowSlot]) => [
|
.map(([name, shadowSlot]) => [
|
||||||
name,
|
name,
|
||||||
// defaulting color to black to avoid potential problems
|
// defaulting color to black to avoid potential problems
|
||||||
|
Loading…
Reference in New Issue
Block a user