fix: journal double api fetching

This commit is contained in:
2025-02-04 16:48:46 +01:00
parent 342127d541
commit b63328f97c
2 changed files with 3 additions and 4 deletions
@@ -188,14 +188,14 @@ export default defineComponent({
if (!value || value == '') return;
if (value.length < 3) return;
this.startSearchTimeout('driver', value);
if (this.showOptions) this.startSearchTimeout('driver', value);
},
async 'searchersValues.search-dispatcher'(value: string | undefined) {
if (!value || value == '') return;
if (value.length < 3) return;
this.startSearchTimeout('dispatcher', value);
if (this.showOptions) this.startSearchTimeout('dispatcher', value);
}
},
@@ -283,7 +283,6 @@ export default defineComponent({
},
searchConfirm() {
this.$emit('onSearchConfirm');
this.handleRouteParams();
},
+1 -1
View File
@@ -272,7 +272,7 @@ export default defineComponent({
this.scrollDataLoaded = true;
},
async fetchHistoryData() {
async fetchHistoryData() {
const queryParams: DispatchersQueryParams = {};
const dispatcherName = this.searchersValues['search-dispatcher'].trim() || undefined;