fix(collection-manager): filter null
This commit is contained in:
		
							parent
							
								
									c03d271481
								
							
						
					
					
						commit
						e087be887b
					
				@ -359,13 +359,16 @@ export const CollectionFields = (props) => {
 | 
				
			|||||||
  dataSource.push(
 | 
					  dataSource.push(
 | 
				
			||||||
    ...inherits.map((key) => {
 | 
					    ...inherits.map((key) => {
 | 
				
			||||||
      const collection = getCollection(key);
 | 
					      const collection = getCollection(key);
 | 
				
			||||||
 | 
					      if (!collection) {
 | 
				
			||||||
 | 
					        return;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
      return {
 | 
					      return {
 | 
				
			||||||
        key,
 | 
					        key,
 | 
				
			||||||
        title: `${t('Inherited fields')} - ` + compile(collection?.title),
 | 
					        title: `${t('Inherited fields')} - ` + compile(collection?.title),
 | 
				
			||||||
        inherit: true,
 | 
					        inherit: true,
 | 
				
			||||||
        fields: collection?.fields || [],
 | 
					        fields: collection?.fields || [],
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
    }),
 | 
					    }).filter(Boolean),
 | 
				
			||||||
  );
 | 
					  );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const resourceActionProps = {
 | 
					  const resourceActionProps = {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user