From 73f5e843cb705d612015e150dfea488bb2cf7e3f Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Mon, 21 Nov 2022 13:05:32 +0100 Subject: fix: Catch error for missing handle (#60) Setting install path manually when one exists already will error out on trying to delete the non-existing "no install found" notification using its non-existing handle. --- src-vue/src/plugins/store.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src-vue/src/plugins') diff --git a/src-vue/src/plugins/store.ts b/src-vue/src/plugins/store.ts index b97af2a7..8ebcaf80 100644 --- a/src-vue/src/plugins/store.ts +++ b/src-vue/src/plugins/store.ts @@ -97,7 +97,12 @@ export const store = createStore({ type: 'success', position: 'bottom-right' }); - notification_handle.close(); + try { + notification_handle.close(); + } + catch { + console.warn("Nothing to close"); + } state.install_type = InstallType.UNKNOWN; // Check for Northstar install -- cgit v1.2.3