fix: getSettingValue quebrando a app
parent
7bb73cfa19
commit
3ced558b18
|
@ -182,7 +182,11 @@ const Settings = () => {
|
|||
}
|
||||
|
||||
const getSettingValue = (key, _obj = false) => {
|
||||
const { value, obj } = settings.find((s) => s.key === key)
|
||||
//const { value, obj } = settings.find((s) => s.key === key)
|
||||
const setting = settings.find((s) => s.key === key)
|
||||
|
||||
const value = setting?.value || ""
|
||||
const obj = setting?.obj || null
|
||||
|
||||
if (_obj)
|
||||
return obj
|
||||
|
|
Loading…
Reference in New Issue