Remove IS_WORKFLOW_RUN_STEP_LOGS_ENABLED feature flag (#21323)
This commit is contained in:
+6
-16
@@ -23,11 +23,9 @@ import {
|
||||
} from '@/workflow/workflow-steps/types/WorkflowRunTabId';
|
||||
import { getWorkflowRunStepExecutionStatus } from '@/workflow/workflow-steps/utils/getWorkflowRunStepExecutionStatus';
|
||||
import { WorkflowIteratorSubStepSwitcher } from '@/workflow/workflow-steps/workflow-actions/iterator-action/components/WorkflowIteratorSubStepSwitcher';
|
||||
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
|
||||
import { styled } from '@linaria/react';
|
||||
import { t } from '@lingui/core/macro';
|
||||
import { isNull } from '@sniptt/guards';
|
||||
import { FeatureFlagKey } from 'twenty-shared/types';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import {
|
||||
IconLogin2,
|
||||
@@ -59,10 +57,6 @@ export const SidePanelWorkflowRunViewStepContent = () => {
|
||||
|
||||
const workflowRun = useWorkflowRun({ workflowRunId });
|
||||
|
||||
const isStepLogsEnabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IS_WORKFLOW_RUN_STEP_LOGS_ENABLED,
|
||||
);
|
||||
|
||||
const sidePanelPageComponentInstance = useComponentInstanceStateContext(
|
||||
SidePanelPageComponentInstanceContext,
|
||||
);
|
||||
@@ -125,15 +119,11 @@ export const SidePanelWorkflowRunViewStepContent = () => {
|
||||
Icon: IconLogin2,
|
||||
disabled: isInputTabDisabled,
|
||||
},
|
||||
...(isStepLogsEnabled
|
||||
? [
|
||||
{
|
||||
id: WorkflowRunTabId.LOGS,
|
||||
title: t`Logs`,
|
||||
Icon: IconTerminal,
|
||||
} satisfies SingleTabProps<TabId>,
|
||||
]
|
||||
: []),
|
||||
{
|
||||
id: WorkflowRunTabId.LOGS,
|
||||
title: t`Logs`,
|
||||
Icon: IconTerminal,
|
||||
},
|
||||
];
|
||||
|
||||
return (
|
||||
@@ -183,7 +173,7 @@ export const SidePanelWorkflowRunViewStepContent = () => {
|
||||
/>
|
||||
) : null}
|
||||
|
||||
{isStepLogsEnabled && activeTabId === WorkflowRunTabId.LOGS ? (
|
||||
{activeTabId === WorkflowRunTabId.LOGS ? (
|
||||
<WorkflowRunStepLogsDetail
|
||||
key={workflowSelectedNode}
|
||||
stepId={workflowSelectedNode}
|
||||
|
||||
Reference in New Issue
Block a user