material-react-table 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2357,8 +2357,10 @@ var MRT_TableContainer = function MRT_TableContainer() {
2357
2357
  if (typeof window !== 'undefined') {
2358
2358
  if (fullScreen) {
2359
2359
  document.body.style.overflow = 'hidden';
2360
- } else if (originalBodyOverflowStyle.current) {
2361
- document.body.style.overflow = originalBodyOverflowStyle.current;
2360
+ } else {
2361
+ var _originalBodyOverflow;
2362
+
2363
+ document.body.style.overflow = (_originalBodyOverflow = originalBodyOverflowStyle.current) != null ? _originalBodyOverflow : 'auto';
2362
2364
  }
2363
2365
  }
2364
2366
  }, [fullScreen]);