From 8a8582e06e8fa0007ed56bf7c76040bf849ac94e Mon Sep 17 00:00:00 2001 From: Kenneth Date: Mon, 2 Dec 2024 11:52:02 +0000 Subject: [PATCH] fix: add asChild prop for DialogTrigger with Button --- web/src/templates/api.ts | 1 + web/src/templates/template-editor.tsx | 2 +- web/src/workspaces/workspace-table.tsx | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/templates/api.ts b/web/src/templates/api.ts index 268c8db..751f2c7 100644 --- a/web/src/templates/api.ts +++ b/web/src/templates/api.ts @@ -167,6 +167,7 @@ function useBaseTemplates() { "/base-templates", (): Promise => fetchApi("/base-templates").then((res) => res.json()), + { refreshInterval: Number.POSITIVE_INFINITY }, ); } diff --git a/web/src/templates/template-editor.tsx b/web/src/templates/template-editor.tsx index 4248cfa..0b430c9 100644 --- a/web/src/templates/template-editor.tsx +++ b/web/src/templates/template-editor.tsx @@ -225,7 +225,7 @@ function EditorTopBar() {

{currentFilePath}

- +