clone: regression causing error when some widgets have a non-string id

This commit is contained in:
jean-emmanuel 2026-08-30 16:04:29 +02:00
parent aee968cba9
commit a73e2755dc
3 changed files with 7 additions and 2 deletions

View file

@ -1,5 +1,10 @@
# Changelog
## 1.31.1
- bug fixes
- clone: regression causing error when some widgets have a non-string id
## 1.31.0
- widgets

View file

@ -2,7 +2,7 @@
"name": "open-stage-control",
"productName": "Open Stage Control",
"description": "Libre and modular OSC / MIDI controller",
"version": "1.31.0",
"version": "1.31.1",
"author": {
"name": "Jean-Emmanuel Doucet",
"email": "jean-emmanuel@ammd.net"

View file

@ -79,7 +79,7 @@ class Clone extends Container() {
var {id, widget} = e
if (id.includes(this.getProp('widgetId')) && this.isValidCloneTarget(widget)) {
if (String(id).includes(this.getProp('widgetId')) && this.isValidCloneTarget(widget)) {
this.getCloneTarget()