mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-26 17:30:27 -04:00
fix: keep a skill's translations and disabled state when saving it from the editor (#30185)
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user