mirror of
https://github.com/open-webui/open-webui
synced 2025-04-05 13:15:36 +00:00
fix: bool eval order
This commit is contained in:
parent
2c4bc7a2b2
commit
06a64219bc
@ -421,7 +421,7 @@
|
|||||||
files: chatFiles
|
files: chatFiles
|
||||||
});
|
});
|
||||||
await chats.set(
|
await chats.set(
|
||||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -469,7 +469,7 @@
|
|||||||
files: chatFiles
|
files: chatFiles
|
||||||
});
|
});
|
||||||
await chats.set(
|
await chats.set(
|
||||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -631,7 +631,7 @@
|
|||||||
timestamp: Date.now()
|
timestamp: Date.now()
|
||||||
});
|
});
|
||||||
await chats.set(
|
await chats.set(
|
||||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||||
);
|
);
|
||||||
await chatId.set(chat.id);
|
await chatId.set(chat.id);
|
||||||
} else {
|
} else {
|
||||||
@ -708,7 +708,7 @@
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
await chats.set(await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit));
|
await chats.set(await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit));
|
||||||
|
|
||||||
return _responses;
|
return _responses;
|
||||||
};
|
};
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
history: history
|
history: history
|
||||||
});
|
});
|
||||||
|
|
||||||
await chats.set(await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit));
|
await chats.set(await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit));
|
||||||
};
|
};
|
||||||
|
|
||||||
const confirmEditResponseMessage = async (messageId, content) => {
|
const confirmEditResponseMessage = async (messageId, content) => {
|
||||||
|
@ -59,7 +59,7 @@
|
|||||||
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
||||||
} else {
|
} else {
|
||||||
await chats.set(
|
await chats.set(
|
||||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,7 +68,7 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
await chats.set(
|
await chats.set(
|
||||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||||
);
|
);
|
||||||
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
title: _title
|
title: _title
|
||||||
});
|
});
|
||||||
await chats.set(
|
await chats.set(
|
||||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||||
);
|
);
|
||||||
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
||||||
}
|
}
|
||||||
@ -64,7 +64,7 @@
|
|||||||
if (res) {
|
if (res) {
|
||||||
goto(`/c/${res.id}`);
|
goto(`/c/${res.id}`);
|
||||||
await chats.set(
|
await chats.set(
|
||||||
await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit)
|
await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit)
|
||||||
);
|
);
|
||||||
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
||||||
}
|
}
|
||||||
@ -72,7 +72,7 @@
|
|||||||
|
|
||||||
const archiveChatHandler = async (id) => {
|
const archiveChatHandler = async (id) => {
|
||||||
await archiveChatById(localStorage.token, id);
|
await archiveChatById(localStorage.token, id);
|
||||||
await chats.set(await getChatList(localStorage.token, 0, $pageSkip * $pageLimit || $pageLimit));
|
await chats.set(await getChatList(localStorage.token, 0, ($pageSkip * $pageLimit) || $pageLimit));
|
||||||
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
await pinnedChats.set(await getChatListByTagName(localStorage.token, 'pinned'));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user