diff --git a/packages/com.sncommunity.advanced-checklist/src/features/tasks/tasks-slice.ts b/packages/com.sncommunity.advanced-checklist/src/features/tasks/tasks-slice.ts index bc5f4a22..4b1712d3 100644 --- a/packages/com.sncommunity.advanced-checklist/src/features/tasks/tasks-slice.ts +++ b/packages/com.sncommunity.advanced-checklist/src/features/tasks/tasks-slice.ts @@ -333,13 +333,11 @@ const tasksSlice = createSlice({ groups: parsedState?.groups ?? [], } - if (newState !== initialState) { - state.schemaVersion = newState.schemaVersion - state.groups = newState.groups - state.defaultSections = newState.defaultSections - state.initialized = true - delete state.lastError - } + state.schemaVersion = newState.schemaVersion + state.groups = newState.groups + state.defaultSections = newState.defaultSections + state.initialized = true + delete state.lastError } catch (error: any) { state.initialized = false state.lastError = `An error has occurred while parsing the note's content: ${error}`