fix(client): cannot read properties of undefined (reading 'split')
This commit is contained in:
parent
008a7f7f33
commit
947215f96d
@ -35,6 +35,9 @@ export const useCollectionManager = () => {
|
||||
},
|
||||
getCollectionField,
|
||||
getCollectionJoinField(name: string) {
|
||||
if (!name) {
|
||||
return;
|
||||
}
|
||||
const [collectionName, ...fieldNames] = name.split('.');
|
||||
if (!fieldNames?.length) {
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user