From df20196201d9a4b64ddafc9db4840c256274a14c Mon Sep 17 00:00:00 2001 From: j433866 Date: Fri, 3 May 2019 11:49:14 +0100 Subject: [PATCH] Fix magic not always working --- src/web/OutputWaiter.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/web/OutputWaiter.mjs b/src/web/OutputWaiter.mjs index 9c4c320b..9fdf9b41 100755 --- a/src/web/OutputWaiter.mjs +++ b/src/web/OutputWaiter.mjs @@ -51,10 +51,10 @@ class OutputWaiter { if (this.outputs[inputNum].data === null) return ""; - if (typeof this.outputs[inputNum].data.dish.value === "string") { - return this.outputs[inputNum].data.dish.value; + if (typeof this.outputs[inputNum].data.result === "string") { + return this.outputs[inputNum].data.result; } else { - return this.outputs[inputNum].data.dish.value || ""; + return this.outputs[inputNum].data.result || ""; } }