gabotorresruiz commented on code in PR #38781:
URL: https://github.com/apache/superset/pull/38781#discussion_r3002300414


##########
superset-frontend/packages/superset-ui-core/src/components/ThemedAgGridReact/index.tsx:
##########
@@ -140,8 +146,32 @@ export const ThemedAgGridReact = forwardRef<
     return baseTheme.withParams(finalParams);
   }, [theme, isDarkMode, themeOverrides]);
 
+  // Expose gridApi and first-data-rendered flag on the container for 
downloadAsImage.
+  const handleGridReady = useCallback(
+    (event: GridReadyEvent) => {
+      if (containerRef.current) {
+        (containerRef.current as any)._agGridFirstDataRendered = false;

Review Comment:
   Yeah, nice catch! I just push this fix. Thanks @alexandrusoare 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to