Skip to content

Commit

Permalink
Fix m2a relations on editing field (directus#9484)
Browse files Browse the repository at this point in the history
  • Loading branch information
rijkvanzanten authored and Armen Danielyan committed Nov 9, 2021
1 parent 2a5a4ed commit 877be2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const useFieldDetailStore = defineStore({
(relation) => relation.related_collection === collection && relation.meta?.one_field === field
) as DeepPartial<Relation> | undefined;

if (['files', 'm2m', 'translations'].includes(this.localType)) {
if (['files', 'm2m', 'translations', 'm2a'].includes(this.localType)) {
this.relations.m2o = relations.find((relation) => relation !== this.relations.o2m) as
| DeepPartial<Relation>
| undefined;
Expand Down

0 comments on commit 877be2d

Please sign in to comment.