fix: isWorkflowsFeatureEnabled method added

This commit is contained in:
Akshay Sasidharan 2025-07-08 13:51:37 +05:30
parent 8ee2a50247
commit abcbea75c0
2 changed files with 7 additions and 2 deletions

@ -1 +1 @@
Subproject commit 090712e637c204ea39becd8d42630f7fa0a56e13
Subproject commit ad35ce1820275c89a119520098b8e08a3b5c94c2

View file

@ -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 };