when resetting the system via the WebUI, remove the sessionStorage as well.

This commit is contained in:
abdulmohsen
2024-07-04 00:09:32 +03:00
parent 681099768f
commit b1a103d8af

View File

@@ -98,6 +98,12 @@ const resetSystem = async () => {
notification('success', 'Success', `System has been successfully reset.`)
await navigateTo('/')
// -- remove all session storage due to the reset.
try {
Object.keys(sessionStorage).forEach(k => sessionStorage.removeItem(k))
} catch (e) {
}
} catch (e) {
error.value = {
error: {