fix getValue method

This commit is contained in:
SrGooglo 2023-01-12 20:23:30 +00:00
parent 0da29e4688
commit d53b27425f

View File

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