fix: keep a skill's translations and disabled state when saving it from the editor (#30185)

This commit is contained in:
G30
2026-09-19 09:59:36 -05:00
committed by GitHub
parent 1f8f1f61bb
commit 36276c9ead
3 changed files with 4 additions and 1 deletions
@@ -68,7 +68,7 @@
name,
description,
content,
is_active: true,
is_active: skill?.is_active ?? true,
meta,
access_grants: accessGrants
});
@@ -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 : []
};
@@ -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
};