From c2325a8b6e06be219b89a576c17a6026ac9bfeba Mon Sep 17 00:00:00 2001 From: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com> Date: Sat, 12 Sep 2026 02:12:49 +0100 Subject: [PATCH] Add missing `as const` for permission string --- packages/web_ui/src/components/NpmButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web_ui/src/components/NpmButton.tsx b/packages/web_ui/src/components/NpmButton.tsx index 17f1883c..e543cb43 100644 --- a/packages/web_ui/src/components/NpmButton.tsx +++ b/packages/web_ui/src/components/NpmButton.tsx @@ -139,7 +139,7 @@ export function NpmButton(props: { } }, [hostId]); - const coreUpdatePermission = `core.${props.target === "controller" ? "controller" : "host"}.update`; + const coreUpdatePermission = `core.${props.target === "controller" ? "controller" : "host"}.update` as const; function onValuesChange({ action } : { action?: string }) { if (action) {