fix(admin): let panel break item

This commit is contained in:
Sabe Jones
2024-05-17 14:13:48 -05:00
parent 57deadaa5c
commit 0756d36fb3
2 changed files with 2 additions and 1 deletions

2
.gitignore vendored
View File

@@ -8,7 +8,7 @@ i18n_cache
apidoc/html
*.swp
.idea*
config.json
config*.json
npm-debug.log*
lib
newrelic_agent.log

View File

@@ -99,6 +99,7 @@ export function castItemVal (itemPath, itemVal) {
// Gear is true when you own it and false if you previously owned it but lost it (e.g., Death)
// Null, empty string, or undefined are taken to mean "unset" i.e. never owned.
if (['null', '', 'undefined'].includes(itemVal)) return undefined;
if (itemVal === 'false') return false;
return Boolean(itemVal);
}