Skip to content

Commit

Permalink
Refactor check for upstream tick
Browse files Browse the repository at this point in the history
Cf. alexandrainst/node-red-contrib-postgresql#33
And update dev dependencies
  • Loading branch information
Alkarex committed Jan 9, 2023
1 parent 0a4f7f7 commit 5355a1f
Show file tree
Hide file tree
Showing 3 changed files with 565 additions and 394 deletions.
2 changes: 1 addition & 1 deletion chunks-to-lines.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module.exports = function (RED) {
let csvFirstLine = '';
node.on('input', function (msg) {
if (tickUpstreamId === undefined) {
tickUpstreamId = findInputNodeId(node, n => RED.nodes.getNode(n.id).tickConsumer);
tickUpstreamId = findInputNodeId(node, (n) => n && n.tickConsumer);
tickUpstreamNode = tickUpstreamId ? RED.nodes.getNode(tickUpstreamId) : null;
}

Expand Down
Loading

0 comments on commit 5355a1f

Please sign in to comment.