Skip to content

Commit

Permalink
Merge pull request #1239 from dpc-sdp/bugfix/map-first-load
Browse files Browse the repository at this point in the history
fix(@dpc-sdp/ripple-ui-core): set firstLoad in finally block
  • Loading branch information
dylankelly authored Jun 28, 2024
2 parents a8b716c + 876b84e commit e6baaf9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/ripple-tide-search/composables/useTideSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,13 +562,12 @@ export default ({
if (typeof onMapResultsHook.value === 'function') {
onMapResultsHook.value()
}

isBusy.value = false
firstLoad.value = true
} catch (error) {
console.error(error)
searchError.value = error
} finally {
isBusy.value = false
firstLoad.value = true
}
}

Expand Down

0 comments on commit e6baaf9

Please sign in to comment.