From abcbea75c0b38d1ab007ca312a7acb0408824013 Mon Sep 17 00:00:00 2001 From: Akshay Sasidharan Date: Tue, 8 Jul 2025 13:51:37 +0530 Subject: [PATCH] fix: isWorkflowsFeatureEnabled method added --- frontend/ee | 2 +- frontend/src/modules/common/helpers/utils.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/ee b/frontend/ee index 090712e637..ad35ce1820 160000 --- a/frontend/ee +++ b/frontend/ee @@ -1 +1 @@ -Subproject commit 090712e637c204ea39becd8d42630f7fa0a56e13 +Subproject commit ad35ce1820275c89a119520098b8e08a3b5c94c2 diff --git a/frontend/src/modules/common/helpers/utils.js b/frontend/src/modules/common/helpers/utils.js index 882ab17cff..d7418b60d3 100644 --- a/frontend/src/modules/common/helpers/utils.js +++ b/frontend/src/modules/common/helpers/utils.js @@ -18,4 +18,9 @@ const fetchEdition = () => { return config.TOOLJET_EDITION?.toLowerCase() || 'ce'; }; -export { processErrorMessage, clearPageHistory, fetchEdition }; +const isWorkflowsFeatureEnabled = () => { + if (fetchEdition() === 'ee') return true; + return false; +}; + +export { processErrorMessage, clearPageHistory, fetchEdition, isWorkflowsFeatureEnabled };