From 61486f2bed90006019ead54c596d63bda83068e5 Mon Sep 17 00:00:00 2001 From: Kiran Parajuli Date: Tue, 29 Mar 2022 10:32:18 +0545 Subject: [PATCH] --amend Signed-off-by: Kiran Parajuli --- src/components/tab/SearchInput.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/tab/SearchInput.vue b/src/components/tab/SearchInput.vue index 33351985d..e98b0ce53 100644 --- a/src/components/tab/SearchInput.vue +++ b/src/components/tab/SearchInput.vue @@ -116,13 +116,10 @@ export default { if (query) { this.resetState() if (query.length <= SEARCH_CHAR_LIMIT) return - await this.debounceGetWorkPackages(query) + await this.debounceMakeSearchRequest(query) } }, - /** - * debounce get work packages to avoid too many requests - */ - debounceGetWorkPackages: _.debounce(function(...args) { + debounceMakeSearchRequest: _.debounce(function(...args) { return this.makeSearchRequest(...args) }, 500), async linkWorkPackageToFile(selectedOption) {