mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	chore(react/collections/table): fix occasional error when initializing
This commit is contained in:
		
							parent
							
								
									32ce6e7a08
								
							
						
					
					
						commit
						33a37be378
					
				@ -33,11 +33,13 @@ export default function Tabulator<T>({ className, columns, data, modules, tabula
 | 
				
			|||||||
            columns,
 | 
					            columns,
 | 
				
			||||||
            data,
 | 
					            data,
 | 
				
			||||||
            footerElement: (parentComponent && footerElement ? renderReactWidget(parentComponent, footerElement)[0] : undefined),
 | 
					            footerElement: (parentComponent && footerElement ? renderReactWidget(parentComponent, footerElement)[0] : undefined),
 | 
				
			||||||
            ...restProps,
 | 
					            ...restProps
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        tabulator.on("tableBuilt", () => {
 | 
				
			||||||
            tabulatorRef.current = tabulator;
 | 
					            tabulatorRef.current = tabulator;
 | 
				
			||||||
            externalTabulatorRef.current = tabulator;
 | 
					            externalTabulatorRef.current = tabulator;
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return () => tabulator.destroy();
 | 
					        return () => tabulator.destroy();
 | 
				
			||||||
    }, []);
 | 
					    }, []);
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user