From ea822f66ca711d7d9a6526086e5f70f660382f43 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Fri, 17 Oct 2025 16:41:30 +0200 Subject: [PATCH] reload: fix issue where the version is null on first visit --- dashboard/src/Index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dashboard/src/Index.vue b/dashboard/src/Index.vue index 263f1df1f..c7e862ab0 100644 --- a/dashboard/src/Index.vue +++ b/dashboard/src/Index.vue @@ -216,7 +216,10 @@ async function refreshConfigAndFeatures() { const [error, result] = await dashboardModel.config(); if (error) return console.error(error); - if (result.version !== localStorage.getItem('version')) { + const currentVersion = localStorage.getItem('version'); + if (currentVersion === null) { + localStorage.setItem('version', result.version); + } else if (result.version !== currentVersion) { console.log('Dashboard version changed, reloading'); localStorage.setItem('version', result.version); window.location.reload(true);