[refactor] improve update

This commit is contained in:
zombieFox 2020-06-14 11:11:50 +01:00
parent 61416e10b3
commit 02c47571fd

View File

@ -1022,6 +1022,9 @@ var update = (function() {
delete arrayItem.display; delete arrayItem.display;
delete arrayItem.letter; delete arrayItem.letter;
delete arrayItem.icon; delete arrayItem.icon;
if (arrayItem.visual.letter == null) {
arrayItem.visual.letter = "";
};
if (arrayItem.visual.icon.label == null) { if (arrayItem.visual.icon.label == null) {
arrayItem.visual.icon.label = ""; arrayItem.visual.icon.label = "";
}; };