mirror of
				https://github.com/chartdb/chartdb.git
				synced 2025-11-04 05:53:15 +00:00 
			
		
		
		
	solve issue with multiple render of tables (#824)
This commit is contained in:
		@@ -464,10 +464,6 @@ export const Canvas: React.FC<CanvasProps> = ({ initialTables }) => {
 | 
				
			|||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    useEffect(() => {
 | 
					    useEffect(() => {
 | 
				
			||||||
        if (areas.length == 0) {
 | 
					 | 
				
			||||||
            return;
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        const checkParentAreas = debounce(() => {
 | 
					        const checkParentAreas = debounce(() => {
 | 
				
			||||||
            const updatedTables = updateTablesParentAreas(tables, areas);
 | 
					            const updatedTables = updateTablesParentAreas(tables, areas);
 | 
				
			||||||
            const needsUpdate: Array<{
 | 
					            const needsUpdate: Array<{
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user