diff --git a/manifest.json b/manifest.json index cf0f4c7..5de6463 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "mood-tracker", "name": "Mood Tracker", - "version": "1.1.0", + "version": "1.1.1", "minAppVersion": "1.0.0", "description": "Track your moods & emotions easily. Visualize tracked history and browse the past entries.", "author": "dartungar", diff --git a/src/main.ts b/src/main.ts index a6efce9..bc7d7fd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -155,6 +155,10 @@ export default class MoodTrackerPlugin extends Plugin { if (legacyEmotionSections) { const convertedLegacyEmotionSections = this.dataIntegrityService.legacyEmotionSectionsToEmotionGroups(legacyEmotionSections); this.settings.emotionGroups.push(...convertedLegacyEmotionSections); + // @ts-expect-error + this.settings['emotionSections'] = null; + // @ts-expect-error + delete this.settings['emotionSections']; } this.settings.emotionGroups = this.emotionService.sortEmotionGroups(this.settings.emotionGroups); this.dataIntegrityService.fillMissingIds(this.settings.emotionGroups);