From 50677fd5290c4333df11327d009211dc1a97a642 Mon Sep 17 00:00:00 2001 From: Eric Tuvesson Date: Tue, 24 Jun 2025 18:26:58 +0200 Subject: [PATCH] fix(runtime): Script node not handling types correctly (#97) --- .../noodl-viewer-react/src/nodes/std-library/javascript.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/noodl-viewer-react/src/nodes/std-library/javascript.js b/packages/noodl-viewer-react/src/nodes/std-library/javascript.js index 72a7d85..9713e8c 100644 --- a/packages/noodl-viewer-react/src/nodes/std-library/javascript.js +++ b/packages/noodl-viewer-react/src/nodes/std-library/javascript.js @@ -500,8 +500,8 @@ function onFrameStart() { } function _typename(type) { - if (typeof type === 'string') return type; - else return type.name; + if (typeof type === 'object') return type.name; + return type; } function userInputSetter(name, value) {