mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
Fix refresh error: Replace const reassignment with property deletion
Co-authored-by: catlog22 <28037070+catlog22@users.noreply.github.com>
This commit is contained in:
@@ -157,9 +157,9 @@ async function refreshWorkspace() {
|
|||||||
// Reload data from server
|
// Reload data from server
|
||||||
const data = await loadDashboardData(projectPath);
|
const data = await loadDashboardData(projectPath);
|
||||||
if (data) {
|
if (data) {
|
||||||
// Update stores
|
// Update stores - clear existing properties
|
||||||
sessionDataStore = {};
|
Object.keys(sessionDataStore).forEach(k => delete sessionDataStore[k]);
|
||||||
liteTaskDataStore = {};
|
Object.keys(liteTaskDataStore).forEach(k => delete liteTaskDataStore[k]);
|
||||||
|
|
||||||
// Populate stores
|
// Populate stores
|
||||||
[...(data.activeSessions || []), ...(data.archivedSessions || [])].forEach(s => {
|
[...(data.activeSessions || []), ...(data.archivedSessions || [])].forEach(s => {
|
||||||
|
|||||||
Reference in New Issue
Block a user