Apply cloneDeep to relations in FieldDetailStore (#9711)

This commit is contained in:
Azri Kahar
2021-11-11 23:43:55 +08:00
committed by GitHub
parent da0676fefc
commit 27631eb8e5

View File

@@ -106,7 +106,7 @@ export const useFieldDetailStore = defineStore({
this.field = cloneDeep(fieldsStore.getField(collection, field)!);
this.localType = getLocalTypeForField(collection, field)!;
const relations = relationsStore.getRelationsForField(collection, field);
const relations = cloneDeep(relationsStore.getRelationsForField(collection, field));
// o2m relation is the same regardless of type
this.relations.o2m = relations.find(