mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
feat: do not initiate requests when the SearchModal is not open to speed up page loading
This commit is contained in:
parent
fb3b736a35
commit
01fcd057b7
1 changed files with 2 additions and 4 deletions
|
|
@ -149,9 +149,9 @@
|
|||
chatListLoading = false;
|
||||
};
|
||||
|
||||
const init = () => {
|
||||
$: if (show) {
|
||||
searchHandler();
|
||||
};
|
||||
}
|
||||
|
||||
const onKeyDown = (e) => {
|
||||
const searchOptions = document.getElementById('search-options-container');
|
||||
|
|
@ -205,8 +205,6 @@
|
|||
};
|
||||
|
||||
onMount(() => {
|
||||
init();
|
||||
|
||||
document.addEventListener('keydown', onKeyDown);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue