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 10:59:36 -04:00 • committed by GitHub
parent 1f8f1f61bb
commit 36276c9ead
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View file

@ -68,7 +68,7 @@
name,
description,
content,
is_active: true,
is_active: skill?.is_active ?? true,
meta,
access_grants: accessGrants
});

View file

@ -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 : []
};

View file

@ -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
};