Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: disable logs viewer for initial workflow run (#41551)

Han Qiaoc0048901cd7c
diff --git a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
index 6d98c4d0caa..2a89db3ffda 100644
--- a/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
+++ b/apps/studio/components/interfaces/BranchManagement/WorkflowLogs.tsx
@@ -108,6 +108,7 @@ export const WorkflowLogs = ({ projectRef, status }: WorkflowLogsProps) => {
<li key={workflowRun.id} className="py-3">
<button
type="button"
+ disabled={workflowRun.id === projectRef}
onClick={() => setSelectedWorkflowRun(workflowRun)}
className="flex items-center gap-2 w-full justify-between"
>
@@ -121,7 +122,7 @@ export const WorkflowLogs = ({ projectRef, status }: WorkflowLogsProps) => {
{dayjs(workflowRun.created_at).format('DD MMM, YYYY HH:mm')}
</span>
</div>
- <ArrowRight size={16} />
+ {workflowRun.id !== projectRef && <ArrowRight size={16} />}
</button>
</li>
))}