diff --git a/client/src/components/Panels/ToolPanel.vue b/client/src/components/Panels/ToolPanel.vue index 94acaca77b13..4c67cb1b837e 100644 --- a/client/src/components/Panels/ToolPanel.vue +++ b/client/src/components/Panels/ToolPanel.vue @@ -40,17 +40,14 @@ const query = ref(""); const showAdvanced = ref(false); onMounted(async () => { - await toolStore - .getPanelViews() - .then(async () => { - await initializeTools(); - }) - .catch((error) => { - console.error(error); - }) - .finally(() => { - arePanelsFetched.value = true; - }); + try { + await toolStore.getPanelViews(); + await initializeTools(); + } catch (error) { + console.error(error); + } finally { + arePanelsFetched.value = true; + } }); watch(