From 34f7e2c26f9b1a9731cc51012a8c158ade1d0c76 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 30 Aug 2024 16:33:25 +0000 Subject: [PATCH] fix: missing try...catch --- packages/nc-gui/pages/forgot-password.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui/pages/forgot-password.vue b/packages/nc-gui/pages/forgot-password.vue index c5c0360b03..847e68fd64 100644 --- a/packages/nc-gui/pages/forgot-password.vue +++ b/packages/nc-gui/pages/forgot-password.vue @@ -42,9 +42,13 @@ async function resetPassword() { resetError() - await api.auth.passwordForgot(form).then(() => { - success.value = true - }) + try { + await api.auth.passwordForgot(form).then(() => { + success.value = true + }) + } catch { + // ignore since error value is set by useApi and will be displayed in UI + } } function resetError() {