aboutsummaryrefslogtreecommitdiff
path: root/src/services
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-22 19:14:54 +0200
committerHenry Jameson <me@hjkos.com>2024-02-22 19:15:55 +0200
commitc4d218cb3e605a83040d2df52ce8f66dcfebc5bf (patch)
tree87949596e2a8e8cc6315ea4bb33594f674dfb52e /src/services
parent9bbf2e70c2abf2fe88badbab88e446c487752c77 (diff)
fix anon view
Diffstat (limited to 'src/services')
-rw-r--r--src/services/theme_data/theme2_to_theme3.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/services/theme_data/theme2_to_theme3.js b/src/services/theme_data/theme2_to_theme3.js
index 11f517c6..ea4b8cd2 100644
--- a/src/services/theme_data/theme2_to_theme3.js
+++ b/src/services/theme_data/theme2_to_theme3.js
@@ -134,7 +134,7 @@ export const convertTheme2To3 = (data) => {
const convertOpacity = () => {
const newRules = []
- Object.keys(data.opacity).forEach(key => {
+ Object.keys(data.opacity || {}).forEach(key => {
if (!opacityKeys.has(key) || data.opacity[key] === undefined) return null
const originalOpacity = data.opacity[key]
const rule = {}
@@ -205,7 +205,7 @@ export const convertTheme2To3 = (data) => {
const convertRadii = () => {
const newRules = []
- Object.keys(data.radii).forEach(key => {
+ Object.keys(data.radii || {}).forEach(key => {
if (!radiiKeys.has(key) || data.radii[key] === undefined) return null
const originalRadius = data.radii[key]
const rule = {}
@@ -258,7 +258,7 @@ export const convertTheme2To3 = (data) => {
const convertFonts = () => {
const newRules = []
- Object.keys(data.fonts).forEach(key => {
+ Object.keys(data.fonts || {}).forEach(key => {
if (!fontsKeys.has(key)) return
const originalFont = data.fonts[key].family
const rule = {}
@@ -292,7 +292,7 @@ export const convertTheme2To3 = (data) => {
}
const convertShadows = () => {
const newRules = []
- Object.keys(data.shadows).forEach(key => {
+ Object.keys(data.shadows || {}).forEach(key => {
if (!shadowsKeys.has(key)) return
const originalShadow = data.shadows[key]
const rule = {}