rusackas commented on a change in pull request #10740:
URL: 
https://github.com/apache/incubator-superset/pull/10740#discussion_r480255758



##########
File path: superset-frontend/src/components/FilterableTable/FilterableTable.tsx
##########
@@ -290,7 +290,7 @@ export default class FilterableTable extends PureComponent<
   }
 
   fitTableToWidthIfNeeded() {
-    const containerWidth = this.container.current!.clientWidth;
+    const containerWidth = this.container?.current?.clientWidth ?? 0;

Review comment:
       @etr2460 check my math on this one, but I think this should work to the 
same effect.




----------------------------------------------------------------
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.

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