From 7369126c65893c63516ebac2f676366d1ce95b55 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Thu, 12 Jan 2023 20:23:30 +0000 Subject: [PATCH] fix `getValue` method --- packages/app/src/cores/style/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app/src/cores/style/index.jsx b/packages/app/src/cores/style/index.jsx index 85403a21..1bf8f4a2 100755 --- a/packages/app/src/cores/style/index.jsx +++ b/packages/app/src/cores/style/index.jsx @@ -137,6 +137,9 @@ export default class StyleCore extends Core { } getValue = (key) => { + const storagedModifications = this.getStoragedModifications() + const staticValues = this.theme.staticVars + if (typeof key === "undefined") { return { ...staticValues, @@ -144,9 +147,6 @@ export default class StyleCore extends Core { } } - const storagedModifications = this.getStoragedModifications() - const staticValues = this.theme.staticVars - return storagedModifications[key] || staticValues[key] }