From aad00d696673423835070ac1ff32ba74d88a3ceb Mon Sep 17 00:00:00 2001 From: frikky Date: Sun, 27 Mar 2022 20:38:53 +0200 Subject: [PATCH] Fixed empty popup box problems --- frontend/src/views/AngularWorkflow.jsx | 5 +++++ frontend/src/views/Workflows.jsx | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/AngularWorkflow.jsx b/frontend/src/views/AngularWorkflow.jsx index c64dec03..3c087680 100644 --- a/frontend/src/views/AngularWorkflow.jsx +++ b/frontend/src/views/AngularWorkflow.jsx @@ -10908,6 +10908,11 @@ const AngularWorkflow = (defaultprops) => { const iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent); const drawerBleeding = 56; + if (defaultReturn === undefined || defaultReturn === null) { + console.log("DEFAULT RETURN: ", defaultReturn) + return null + } + return ( isMobile ? { jsonvalid = false } - console.log("RES: ", result) // This is where we start recursing if (jsonvalid) { // Check fields if they can be parsed too