fix M2M and M2A drawer item validation (#12629)

This commit is contained in:
Azri Kahar
2022-04-08 21:49:24 +08:00
committed by GitHub
parent f854109e23
commit e0ce9e38f2

View File

@@ -135,7 +135,7 @@ export default defineComponent({
const { info: collectionInfo } = useCollection(collection);
const isNew = computed(() => props.primaryKey === '+');
const isNew = computed(() => props.primaryKey === '+' && props.relatedPrimaryKey === '+');
const title = computed(() => {
const collection = junctionRelatedCollectionInfo?.value || collectionInfo.value!;