diff --git a/app/src/modules/settings/routes/data-model/field-detail/components/relationship-m2o.vue b/app/src/modules/settings/routes/data-model/field-detail/components/relationship-m2o.vue
index 8fb318c3cc..c9d2cae7fa 100644
--- a/app/src/modules/settings/routes/data-model/field-detail/components/relationship-m2o.vue
+++ b/app/src/modules/settings/routes/data-model/field-detail/components/relationship-m2o.vue
@@ -8,7 +8,7 @@
{{ $t('related_collection') }}
-
+
@@ -33,7 +33,7 @@
-
+
@@ -86,8 +86,8 @@ export default defineComponent({
const { items } = useRelation();
const { hasCorresponding, correspondingField, correspondingLabel } = useCorresponding();
- const isNewCollection = computed(() => {
- return collectionsStore.getCollection(state.relations[0].one_collection) === null;
+ const relatedCollectionExists = computed(() => {
+ return !!collectionsStore.getCollection(state.relations[0].one_collection);
});
return {
@@ -97,7 +97,7 @@ export default defineComponent({
correspondingField,
correspondingLabel,
fieldData: state.fieldData,
- isNewCollection,
+ relatedCollectionExists,
};
function useRelation() {