Merge branch 'fix-fix-themes' into 'develop'

fallback if shadows aren't defined

See merge request pleroma/pleroma-fe!1337
This commit is contained in:
HJ 2021-01-28 12:14:28 +00:00
commit 6e4a0d408c
1 changed files with 1 additions and 1 deletions

View File

@ -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