Skip to content

Commit e47f9d4

Browse files
leftybournesAndyScherzinger
authored andcommitted
fix(unified-search): catch errors in response
Signed-off-by: Kent Delante <kent@delante.me> When an error response is returned by the unified search api, unified search shows an endless "Searching" message. This catches the error and sets the modal into a non-searching state so it no longer endlessly shows the message.
1 parent 245aba8 commit e47f9d4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/src/components/UnifiedSearch/UnifiedSearchModal.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,9 @@ export default defineComponent({
577577
578578
this.updateResults(newResults)
579579
this.searching = false
580+
}).catch((error) => {
581+
unifiedSearchLogger.error(error)
582+
this.searching = false
580583
})
581584
}
582585

0 commit comments

Comments
 (0)