From 2de6386cb552bd946a33e2de9e061b55f9149122 Mon Sep 17 00:00:00 2001 From: Sergey Kozyrenko Date: Thu, 23 Jul 2026 13:52:15 +0700 Subject: [PATCH] fix(templates): don't disable the detail actions on a background refetch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit isTemplatePending ORed the raw Apollo `loading` flag, gating Save/Rename/Delete. Commit 3d5fc75 fixed the sibling *render* gate (`isLoadingTemplate && !template`) but left this `disabled` gate one level down still keyed on raw loading, so a background revalidation greyed out the actions on a form the user had already edited. flow.tsx uses the entity-guarded `isFlowLoading`; template was the only detail page reading raw loading here. The render gates above (both branches carry `!template`) already make the form unreachable without a loaded template, so the loading term only added a dead disabled window — dropped it. Co-Authored-By: Claude Opus 4.8 --- frontend/src/pages/templates/template.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/templates/template.tsx b/frontend/src/pages/templates/template.tsx index 93c90e08..cdd7224f 100644 --- a/frontend/src/pages/templates/template.tsx +++ b/frontend/src/pages/templates/template.tsx @@ -422,7 +422,7 @@ function Template() { }, [pendingPreset, setValue]); const hasTemplate = !!templateData?.flowTemplate; - const isTemplatePending = !isNew && (isLoadingTemplate || !hasTemplate); + const isTemplatePending = !isNew && !hasTemplate; const isTemplateMissing = !isNew && !isLoadingTemplate && !hasTemplate; const pageHeader = (