From 47799b8ef38af0fbe7be5ed5d27847ab19412e05 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 20 Jan 2022 12:29:28 +0000 Subject: [PATCH] Adding fix to show the initial create table modal when a new app is created, the same as prod, when testing in cypress. --- packages/worker/src/api/controllers/system/environment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/worker/src/api/controllers/system/environment.js b/packages/worker/src/api/controllers/system/environment.js index 609c3e83c5..4edf1ff8d3 100644 --- a/packages/worker/src/api/controllers/system/environment.js +++ b/packages/worker/src/api/controllers/system/environment.js @@ -7,6 +7,6 @@ exports.fetch = async ctx => { accountPortalUrl: env.ACCOUNT_PORTAL_URL, disableAccountPortal: env.DISABLE_ACCOUNT_PORTAL, // in test need to pretend its in production for the UI (Cypress) - isDev: env.isDev(), + isDev: env.isDev() && !env.isTest(), } }