mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
fix iconExists
This commit is contained in:
parent
b66fd3b1d4
commit
54204dcefa
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ const { ICONS, ICONS_NEXTGEN, ICONS_NEXTGEN_LEGACY_MAPPINGS } = require('../cons
|
|||
// Check if an icon exists.
|
||||
function _iconExists(icon){
|
||||
if(ICONS_NEXTGEN_LEGACY_MAPPINGS[icon]) icon = ICONS_NEXTGEN_LEGACY_MAPPINGS[icon]
|
||||
return (!ICONS_NEXTGEN[icon] && !ICONS[icon]);
|
||||
return (!ICONS_NEXTGEN[icon] || !ICONS[icon]);
|
||||
}
|
||||
|
||||
// Internal icon resolver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue