Skip to content

Commit c94fa36

Browse files
committed
Fix delete button.
1 parent aa2cd1a commit c94fa36

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,10 +306,13 @@
306306
info.setCellStyle("titolo","feedNameLeft","feedNameLeft");
307307
info.setCellStyle("controllo","message","message");
308308

309-
if (info.getChangedFieldValue("command") != null) { //key field changes only at first update
309+
if (info.getChangedFieldValue("command") != null) {
310+
//key field changes only at first update
310311
var key = info.getChangedFieldValue("key");
311-
var spans = domNode.getElementsByTagName("span");
312-
spans[0].innerHTML = buttonTemplate1+key+buttonTemplate2;
312+
if (key != null) {
313+
var spans = domNode.getElementsByTagName("span");
314+
spans[0].innerHTML = buttonTemplate1+key+buttonTemplate2;
315+
}
313316
}
314317
}
315318

0 commit comments

Comments
 (0)