mirror of
https://github.com/open-webui/open-webui.git
synced 2026-02-24 04:00:31 +01:00
refac/fix: duplicated api calls for evaluation
This commit is contained in:
@@ -80,11 +80,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
$: if (page) {
|
||||
getFeedbacks();
|
||||
}
|
||||
|
||||
$: if (orderBy && direction) {
|
||||
$: if (orderBy && direction && page) {
|
||||
getFeedbacks();
|
||||
}
|
||||
|
||||
|
||||
@@ -79,9 +79,9 @@
|
||||
debounceTimer = setTimeout(() => loadLeaderboard(query), 500);
|
||||
};
|
||||
|
||||
$: query, debouncedLoad();
|
||||
|
||||
onMount(() => loadLeaderboard());
|
||||
$: if (query !== null) {
|
||||
debouncedLoad();
|
||||
}
|
||||
|
||||
$: sortedModels = [...rankedModels].sort((a, b) => {
|
||||
const getValue = (m, key) => {
|
||||
|
||||
Reference in New Issue
Block a user