Skip to content

Commit

Permalink
Prevent converted widget being duplicated (#1115)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered authored Oct 5, 2024
1 parent 4cc6954 commit f201729
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extensions/core/widgetInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ app.registerExtension({
widget.options || {}
]
if (!isConvertibleWidget(widget, config)) return false
if (widget.type?.startsWith(CONVERTED_TYPE)) return false
convertToInput(this, widget, config)
return true
}
Expand Down

0 comments on commit f201729

Please sign in to comment.