Skip to content

Commit d4f0cbe

Browse files
authored
refactor(tasks): remove feature flag for task automation display (#1696)
1 parent e03f5de commit d4f0cbe

File tree

1 file changed

+3
-7
lines changed
  • apps/app/src/app/(app)/[orgId]/tasks/[taskId]/components

1 file changed

+3
-7
lines changed

apps/app/src/app/(app)/[orgId]/tasks/[taskId]/components/SingleTask.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import {
2222
} from '@db';
2323
import { RefreshCw, Trash2 } from 'lucide-react';
2424
import { useAction } from 'next-safe-action/hooks';
25-
import { useFeatureFlagEnabled } from 'posthog-js/react';
2625
import { useState } from 'react';
2726
import { toast } from 'sonner';
2827
import { Comments } from '../../../../../../components/comments/Comments';
@@ -56,7 +55,6 @@ export function SingleTask({ initialTask, initialAutomations }: SingleTaskProps)
5655
const { automations } = useTaskAutomations({
5756
initialData: initialAutomations,
5857
});
59-
const isTaskAutomationEnabled = useFeatureFlagEnabled('is-task-automation-enabled');
6058

6159
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
6260
const [isRegenerateConfirmOpen, setRegenerateConfirmOpen] = useState(false);
@@ -168,11 +166,9 @@ export function SingleTask({ initialTask, initialAutomations }: SingleTaskProps)
168166
</div>
169167
</Card>
170168
{/* Automations section */}
171-
{isTaskAutomationEnabled && (
172-
<Card className="border border-border bg-card shadow-sm overflow-hidden">
173-
<TaskAutomations automations={automations || []} />
174-
</Card>
175-
)}
169+
<Card className="border border-border bg-card shadow-sm overflow-hidden">
170+
<TaskAutomations automations={automations || []} />
171+
</Card>
176172
</div>
177173
</div>
178174

0 commit comments

Comments
 (0)