Skip to content

Commit

Permalink
Merge pull request #1097 from FlowFuse/747_ui-template-nodes-not-rece…
Browse files Browse the repository at this point in the history
…iving-messages-after-network-disconnection-recovery

Alter UITemplate dataTracker bind to anonymous component
  • Loading branch information
joepavitt authored Jul 30, 2024
2 parents 431b3a7 + 37b8656 commit 925616b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ui/src/widgets/ui-template/UITemplate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ export default {
...component?.methods
},
created () {
this.$dataTracker(props.id)
if (component?.beforeCreate) {
// run any generic JS code user has defined outisde of a VueJS component
// eslint-disable-next-line no-eval
Expand All @@ -188,9 +190,6 @@ export default {
props: props.props
})
},
created () {
this.$dataTracker(this.id)
},
errorCaptured: (err, vm, info) => {
console.error('errorCaptured', err, vm, info)
return false
Expand Down

0 comments on commit 925616b

Please sign in to comment.