Save local changes (GSC/Bing integrations) before merging PR #354

This commit is contained in:
ajaysi
2026-02-13 13:11:27 +05:30
parent 43e66835ac
commit 08a1f4a1d8
144 changed files with 8310 additions and 2748 deletions

View File

@@ -545,7 +545,7 @@ class TaskWorkflowOrchestrator {
private loadPersistedWorkflows(): void {
if (this.config.persistProgress) {
try {
const keys = Object.keys(localStorage).filter(key => key.startsWith('workflow-'));
const keys = Object.keys(localStorage).filter(key => key.startsWith('workflow-') && key !== 'workflow-store');
keys.forEach(key => {
const workflowData = localStorage.getItem(key);
if (workflowData) {
@@ -554,7 +554,8 @@ class TaskWorkflowOrchestrator {
// Ensure workflow has required properties
if (!workflow.id || !workflow.date || !workflow.userId) {
console.warn(`Invalid workflow data for key ${key}, skipping`);
console.warn(`Invalid workflow data for key ${key}, skipping and cleaning up`);
localStorage.removeItem(key);
return;
}