Skip to content

Commit

Permalink
Fix reactivity on m2m relation setup
Browse files Browse the repository at this point in the history
Fixes #5839
  • Loading branch information
rijkvanzanten committed May 24, 2021
1 parent 374e6e5 commit 2660c39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/fair-dingos-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@directus/app': patch
---

Fixed issue where using an existing junction collection wouldn't allow you to continue in the many to many field setup
flow
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
v-for="collection in availableCollections"
:key="collection.collection"
:active="relations[0].collection === collection.collection"
@click="relations[0].collection = collection.collection"
@click="junctionCollection = collection.collection"
>
<v-list-item-content>
{{ collection.collection }}
Expand All @@ -46,7 +46,7 @@
v-for="collection in systemCollections"
:key="collection.collection"
:active="relations[0].collection === collection.collection"
@click="relations[0].collection = collection.collection"
@click="junctionCollection = collection.collection"
>
<v-list-item-content>
{{ collection.collection }}
Expand Down Expand Up @@ -352,7 +352,7 @@
},
{
text: $t('referential_action_cascade', {
collection: relatedCollectionName,
collection: junctionCollectionName,
field: junctionRelatedM2OFieldName,
}),
value: 'CASCADE',
Expand Down

0 comments on commit 2660c39

Please sign in to comment.