mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-05 02:41:34 +00:00
fix: refresh the skill list used in chat after turning a skill on or off (#30966)
This commit is contained in:
parent
42cd4f0ec0
commit
ffa6bb17cd
1 changed files with 2 additions and 1 deletions
|
|
@ -584,7 +584,8 @@
|
||||||
<Switch
|
<Switch
|
||||||
bind:state={skill.is_active}
|
bind:state={skill.is_active}
|
||||||
on:change={async () => {
|
on:change={async () => {
|
||||||
toggleSkillById(localStorage.token, skill.id);
|
await toggleSkillById(localStorage.token, skill.id);
|
||||||
|
_skills.set(await getSkills(localStorage.token));
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue