fix getValue method

This commit is contained in:
SrGooglo 2023-01-12 20:23:30 +00:00
parent 5ec79e2e6d
commit 7369126c65

View File

@ -137,6 +137,9 @@ export default class StyleCore extends Core {
} }
getValue = (key) => { getValue = (key) => {
const storagedModifications = this.getStoragedModifications()
const staticValues = this.theme.staticVars
if (typeof key === "undefined") { if (typeof key === "undefined") {
return { return {
...staticValues, ...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] return storagedModifications[key] || staticValues[key]
} }