|
|
@@ -27,6 +27,10 @@ import { QUERY_TYPE } from '~/types/enums'
|
|
|
import { Organization } from '~/models/Organization/Organization'
|
|
|
import { queryHelper } from '~/services/store/query'
|
|
|
import { repositoryHelper } from '~/services/store/repository'
|
|
|
+import {ContactPoint} from "~/models/Core/ContactPoint";
|
|
|
+import {BankAccount} from "~/models/Core/BankAccount";
|
|
|
+import {OrganizationAddressPostal} from "~/models/Organization/OrganizationAddressPostal";
|
|
|
+import {Country} from "~/models/Core/Country";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'Organization',
|
|
|
@@ -49,7 +53,14 @@ export default defineComponent({
|
|
|
model: Organization,
|
|
|
id: store.state.profile.organization.id
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ beforeDestroy() {
|
|
|
+ repositoryHelper.cleanRepository(Organization)
|
|
|
+ repositoryHelper.cleanRepository(ContactPoint)
|
|
|
+ repositoryHelper.cleanRepository(BankAccount)
|
|
|
+ repositoryHelper.cleanRepository(OrganizationAddressPostal)
|
|
|
+ repositoryHelper.cleanRepository(Country)
|
|
|
+ },
|
|
|
})
|
|
|
|
|
|
</script>
|