Skip to content

Commit

Permalink
Remove unnecessary try/catch in NotificationForm.vue
Browse files Browse the repository at this point in the history
Co-authored-by: Marius van den Beek <[email protected]>
  • Loading branch information
davelopez and mvdbeek committed Aug 12, 2024
1 parent 1d9d0bb commit 48206e7
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,8 @@ async function loadData<T>(
target: Ref<SelectOption[]>,
formatter: (item: T) => SelectOption
) {
try {
const tmp = await getData();
target.value = tmp.map(formatter);
} catch (error) {
Toast.error(errorMessageAsString(error));
}
const tmp = await getData();
target.value = tmp.map(formatter);
}
async function getAllGroups() {
Expand Down

0 comments on commit 48206e7

Please sign in to comment.