diff --git a/src/stores/profile.js b/src/stores/profile.js index 05939448..57c6c455 100644 --- a/src/stores/profile.js +++ b/src/stores/profile.js @@ -173,6 +173,13 @@ export const useProfileStore = defineStore('profile', { actions: { + resetLocalComponentCache(){ + cachePt = {} + cacheGuid = {} + dataChangedTimeout = null + }, + + /** * The main first process that takes the raw profiles and processes them for use * diff --git a/src/views/Edit.vue b/src/views/Edit.vue index cf6ccdd4..0c0ca0d8 100644 --- a/src/views/Edit.vue +++ b/src/views/Edit.vue @@ -180,6 +180,7 @@ console.log("Mounted called", this.$route.params.action, this.$route.params.recordId ) console.log(this.$route.params) + this.profileStore.resetLocalComponentCache() if (this.profilesLoaded && this.activeProfile){ if (this.activeProfile.neweId){ @@ -194,11 +195,10 @@ // otherwise they just got kicked over to the edit screen with an existing record id, load it from the back end to edit this.profileStore.loadRecordFromBackend(this.$route.params.recordId) } + } - - - } +