From 71236927d2fd3430bd546d8bc022d0d562aab2da Mon Sep 17 00:00:00 2001 From: SP12893678 <36910625+SP12893678@users.noreply.github.com> Date: Sat, 27 Jul 2024 00:48:40 +0800 Subject: [PATCH] Fix group detail collapse on save and stay action (#23099) * Fix group detail collapse on save and stay action * Fix format * Use watch once setting instead of variable * Add changeset --------- Co-authored-by: Rijk van Zanten --- .changeset/neat-pumas-ring.md | 5 +++++ app/src/interfaces/group-detail/group-detail.vue | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/neat-pumas-ring.md diff --git a/.changeset/neat-pumas-ring.md b/.changeset/neat-pumas-ring.md new file mode 100644 index 0000000000000..92cc93137c8c7 --- /dev/null +++ b/.changeset/neat-pumas-ring.md @@ -0,0 +1,5 @@ +--- +'@directus/app': patch +--- + +Fixed an issue that would cause detail groups to be collapsed on save and stay diff --git a/app/src/interfaces/group-detail/group-detail.vue b/app/src/interfaces/group-detail/group-detail.vue index 3e892ed1579df..ae8ae5669c1c7 100644 --- a/app/src/interfaces/group-detail/group-detail.vue +++ b/app/src/interfaces/group-detail/group-detail.vue @@ -43,6 +43,7 @@ watch( (newVal) => { if (!newVal) detailOpen.value = props.start === 'open'; }, + { once: true }, ); const edited = computed(() => {