Skip to content

Commit

Permalink
Update ui/src/widgets/ui-switch/UISwitch.vue
Browse files Browse the repository at this point in the history
Co-authored-by: Stephen McLaughlin <[email protected]>
  • Loading branch information
joepavitt and Steve-Mcl authored Nov 22, 2024
1 parent 97db494 commit d898237
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/widgets/ui-switch/UISwitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export default {
onSync (msg) {
if (msg) {
// make sure we've got the relevant option selected on load of the page
if (msg.payload !== undefined) {
if (typeof msg.payload !== 'undefined') {
this.selection = msg.payload
}
}
Expand Down

0 comments on commit d898237

Please sign in to comment.