editor: fix "ID + 1" paste for widgets with numeric ids

This commit is contained in:
bordun 2021-04-29 14:05:26 +02:00
parent 1a822416f8
commit 9470aba0ec
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@
- tabs not sending messages / triggering scripts when clicked in editing mode
- prevent hang with some syntax errors in advanced syntaxes
- don't show project tree when creating a new widget (1.9.2 regression)
- fix "ID + 1" paste for widgets with numeric ids
- editor
- tree: allow specifying multiple type filters

View file

@ -177,8 +177,8 @@ var incrementWidget = function(data, root){
return data
}
var id = data.id,
address = data.address
var id = String(data.id),
address = String(data.address)
if (id && address == '/' + id) {