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