Skip to content

Commit f790653

Browse files
author
Simon Milfred
committed
fix: dont show error on aborted signals
1 parent bcf7a5e commit f790653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

composables/useLimboSearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ export const useLimboSearch = async (options = {}) => {
771771
} catch (error) {
772772
// Handle any unexpected errors during the search process
773773
// Don't log AbortError as these are intentional cancellations
774-
if (error.name !== 'AbortError') {
774+
if (error.name !== 'AbortError' && !activeRequestController.value?.signal?.aborted) {
775775
console.error('Unexpected error during search:', error);
776776
state.value.isLoading = false;
777777
searchData.value.error = {

0 commit comments

Comments
 (0)