fix: undefined mode (#1950)

This commit is contained in:
katherinehhh 2023-05-29 16:27:23 +08:00 committed by GitHub
parent 6d326f424a
commit 76ddbf2104
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1121,7 +1121,7 @@ export const useAssociationNames = (collection) => {
if (['Nester', 'SubTable'].includes(s['x-component-props']?.mode)) { if (['Nester', 'SubTable'].includes(s['x-component-props']?.mode)) {
associationValues.push(s.name); associationValues.push(s.name);
} }
if (s['x-component-props'].mode === 'Nester') { if (s['x-component-props']?.mode === 'Nester') {
return getAssociationAppends(s, buf); return getAssociationAppends(s, buf);
} }
return buf; return buf;