mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac: refresh tool list on show
This commit is contained in:
parent
f97f21bf3a
commit
8a1f321fd4
1 changed files with 1 additions and 3 deletions
|
|
@ -48,9 +48,7 @@
|
||||||
($user?.role === 'admin' || $user?.permissions?.chat?.file_upload);
|
($user?.role === 'admin' || $user?.permissions?.chat?.file_upload);
|
||||||
|
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
if ($_tools === null) {
|
await _tools.set(await getTools(localStorage.token));
|
||||||
await _tools.set(await getTools(localStorage.token));
|
|
||||||
}
|
|
||||||
|
|
||||||
tools = $_tools.reduce((a, tool, i, arr) => {
|
tools = $_tools.reduce((a, tool, i, arr) => {
|
||||||
a[tool.id] = {
|
a[tool.id] = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue