Skip to content

Commit

Permalink
fix(switch): Change to strict checking of payload for onTrigger
Browse files Browse the repository at this point in the history
Fixes: #983
  • Loading branch information
zachowj committed Jul 12, 2023
1 parent b18a5ea commit 6c1a795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/switch/SwitchController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default class SwitchController extends InputOutputController<
const message: NodeMessage = {
topic: 'triggered',
};
if (data.payload) {
if (data.payload !== undefined) {
message.payload = data.payload;
}

Expand Down

0 comments on commit 6c1a795

Please sign in to comment.