alexandrusoare commented on code in PR #38781:
URL: https://github.com/apache/superset/pull/38781#discussion_r3000665732
##########
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:
Is there a way to avoid this `any` type casting in this scenario?
--
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]