fixed color undefined text

main
Jan Umbach 2024-06-29 10:23:35 +02:00
parent 2cd1c92366
commit e0b0b15991
1 changed files with 12 additions and 1 deletions

View File

@ -400,11 +400,22 @@
let inputVal = _inputVal;
let inputValJson: null | any = null;
if(typeof _inputVal === 'object') {
inputVal = _inputVal.id;
}
else{
try {
inputValJson = JSON.parse(_inputVal);
} catch(e) {
inputValJson = null;
}
console.log(inputVal);
if(inputValJson) {
inputVal = inputValJson.id;
}
}
if(!colorWhiteList || colorWhiteList.length === 0) {
options = [...sortedFilementIDs];