From cf15de2538c676a574c282f0e41428c59e6b20d0 Mon Sep 17 00:00:00 2001 From: Edward Hibbert Date: Mon, 25 Nov 2024 10:41:21 +0000 Subject: [PATCH] Don't lose group networks when archiving. --- resources/js/components/GroupActions.vue | 4 ++++ resources/js/components/GroupHeading.vue | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/resources/js/components/GroupActions.vue b/resources/js/components/GroupActions.vue index f5834b98c..aa605f20d 100644 --- a/resources/js/components/GroupActions.vue +++ b/resources/js/components/GroupActions.vue @@ -120,6 +120,10 @@ export default { group.id = this.idgroups group.archived_at = (new Date()).toISOString() group.description = group.free_text + + // Make sure we don't stomp on the networks. + delete group.networks + await this.$store.dispatch('groups/edit', group) await this.$store.dispatch('groups/fetch', { diff --git a/resources/js/components/GroupHeading.vue b/resources/js/components/GroupHeading.vue index ecb1401f1..de5e3139a 100644 --- a/resources/js/components/GroupHeading.vue +++ b/resources/js/components/GroupHeading.vue @@ -17,7 +17,7 @@
- {{ group.location }}
+ {{ location }}
{{ __('groups.website') }}