mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 14:16:26 +00:00
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,
|
getCollectionField,
|
||||||
getCollectionJoinField(name: string) {
|
getCollectionJoinField(name: string) {
|
||||||
|
if (!name) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const [collectionName, ...fieldNames] = name.split('.');
|
const [collectionName, ...fieldNames] = name.split('.');
|
||||||
if (!fieldNames?.length) {
|
if (!fieldNames?.length) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user