Remove form feature flag (#11369)
As title. Workflows are still in the lab and forms are starting to be usable
This commit is contained in:
@ -4,9 +4,7 @@ import { RightDrawerWorkflowSelectStepTitle } from '@/workflow/workflow-steps/co
|
||||
import { useCreateStep } from '@/workflow/workflow-steps/hooks/useCreateStep';
|
||||
import { OTHER_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/OtherActions';
|
||||
import { RECORD_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/RecordActions';
|
||||
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
|
||||
import { MenuItemCommand, useIcons } from 'twenty-ui';
|
||||
import { FeatureFlagKey } from '~/generated-metadata/graphql';
|
||||
|
||||
export const CommandMenuWorkflowSelectActionContent = ({
|
||||
workflow,
|
||||
@ -17,9 +15,6 @@ export const CommandMenuWorkflowSelectActionContent = ({
|
||||
const { createStep } = useCreateStep({
|
||||
workflow,
|
||||
});
|
||||
const isWorkflowFormActionEnabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IsWorkflowFormActionEnabled,
|
||||
);
|
||||
|
||||
return (
|
||||
<RightDrawerStepListContainer>
|
||||
@ -37,9 +32,7 @@ export const CommandMenuWorkflowSelectActionContent = ({
|
||||
<RightDrawerWorkflowSelectStepTitle>
|
||||
Other
|
||||
</RightDrawerWorkflowSelectStepTitle>
|
||||
{OTHER_ACTIONS.filter(
|
||||
(action) => isWorkflowFormActionEnabled || action.type !== 'FORM',
|
||||
).map((action) => (
|
||||
{OTHER_ACTIONS.map((action) => (
|
||||
<MenuItemCommand
|
||||
key={action.type}
|
||||
LeftIcon={getIcon(action.icon)}
|
||||
|
||||
Reference in New Issue
Block a user