fixed color undefined text
parent
2cd1c92366
commit
e0b0b15991
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue