Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
bartbutenaers authored Dec 20, 2024
1 parent 6c13efc commit c3b1976
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nodes/widgets/ui_form.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const statestore = require('../store/state.js')
const { appendTopic } = require('../utils/index.js')

module.exports = function (RED) {
function FormNode (config) {
Expand All @@ -13,7 +12,7 @@ module.exports = function (RED) {

const evts = {
onAction: true,
beforeSend: async function (msg) {
beforeSend: function (msg) {
if (msg.ui_update) {
const update = msg.ui_update
if (typeof update.label !== 'undefined') {
Expand All @@ -33,8 +32,6 @@ module.exports = function (RED) {
statestore.set(group.getBase(), node, msg, 'dropdownOptions', update.dropdownOptions)
}
}

msg = await appendTopic(RED, config, node, msg)
return msg
}
}
Expand Down

0 comments on commit c3b1976

Please sign in to comment.