mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
fix getValue
method
This commit is contained in:
parent
0da29e4688
commit
d53b27425f
@ -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]
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user