From 36276c9eadd7aa4051d54fa9a6418929035740e1 Mon Sep 17 00:00:00 2001 From: G30 <50341825+silentoplayz@users.noreply.github.com> Date: Sat, 19 Sep 2026 10:59:36 -0400 Subject: [PATCH] fix: keep a skill's translations and disabled state when saving it from the editor (#30185) --- src/lib/components/workspace/Skills/SkillEditor.svelte | 2 +- src/routes/(app)/workspace/skills/create/+page.svelte | 1 + src/routes/(app)/workspace/skills/edit/+page.svelte | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/workspace/Skills/SkillEditor.svelte b/src/lib/components/workspace/Skills/SkillEditor.svelte index 9a78aa05d8..be292dc476 100644 --- a/src/lib/components/workspace/Skills/SkillEditor.svelte +++ b/src/lib/components/workspace/Skills/SkillEditor.svelte @@ -68,7 +68,7 @@ name, description, content, - is_active: true, + is_active: skill?.is_active ?? true, meta, access_grants: accessGrants }); diff --git a/src/routes/(app)/workspace/skills/create/+page.svelte b/src/routes/(app)/workspace/skills/create/+page.svelte index 07955eae37..3985cea955 100644 --- a/src/routes/(app)/workspace/skills/create/+page.svelte +++ b/src/routes/(app)/workspace/skills/create/+page.svelte @@ -44,6 +44,7 @@ id: _skill.id || '', description: _skill.description || '', content: _skill.content || '', + meta: _skill.meta ?? {}, is_active: _skill.is_active ?? true, access_grants: _skill.access_grants !== undefined ? _skill.access_grants : [] }; diff --git a/src/routes/(app)/workspace/skills/edit/+page.svelte b/src/routes/(app)/workspace/skills/edit/+page.svelte index 7aa954188a..47a4ceb709 100644 --- a/src/routes/(app)/workspace/skills/edit/+page.svelte +++ b/src/routes/(app)/workspace/skills/edit/+page.svelte @@ -32,6 +32,7 @@ name: updatedSkill.name, description: updatedSkill.description, content: updatedSkill.content, + meta: updatedSkill.meta ?? {}, is_active: updatedSkill.is_active, access_grants: updatedSkill?.access_grants === undefined ? [] : updatedSkill?.access_grants }; @@ -52,6 +53,7 @@ name: _skill.name, description: _skill.description, content: _skill.content, + meta: _skill.meta ?? {}, is_active: _skill.is_active, access_grants: _skill?.access_grants === undefined ? [] : _skill?.access_grants };