Skip to content

Commit

Permalink
fix(time): Stop status message from getting cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Aug 22, 2023
1 parent 7d5cfde commit 57bd871
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/nodes/time-entity/TimeEntityController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ export default class TimeEntityController extends InputOutputController<

// Handles input messages when the node is in "get" mode
async #onInputModeGet({ done, message, send }: InputProperties) {
const value = this.#entityConfigNode?.state?.getLastPayload()?.state as
| string
| undefined;

this.status.setSuccess(value);
const value = this.#entityConfigNode?.state?.getLastPayload()
?.state as string;
// inject value so colons are not removed
this.status.setSuccess(['__value__', { value }]);
this.setCustomOutputs(this.node.config.outputProperties, message, {
config: this.node.config,
value,
Expand Down Expand Up @@ -167,6 +166,7 @@ export default class TimeEntityController extends InputOutputController<
state: value,
attributes: {},
});
this.status.setSuccess(value);
// inject value so colons are not removed
this.status.setSuccess(['__value__', { value }]);
}
}

0 comments on commit 57bd871

Please sign in to comment.