@7shifts/sous-chef 3.43.3-beta.3 → 3.43.3-beta.5

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.
package/dist/index.js CHANGED
@@ -8631,12 +8631,12 @@ var DataTableCoverShadow = function DataTableCoverShadow(_ref) {
8631
8631
  headerHeight = _useState[0],
8632
8632
  setHeaderHeight = _useState[1];
8633
8633
  React.useLayoutEffect(function () {
8634
- if (tableRef.current) {
8634
+ if (isShowingColumns && tableRef.current) {
8635
8635
  var header = tableRef.current.getElementsByTagName('thead')[0];
8636
8636
  var height = window.getComputedStyle(header).getPropertyValue('height');
8637
8637
  setHeaderHeight(height);
8638
8638
  }
8639
- }, [tableRef]);
8639
+ }, [tableRef, isShowingColumns]);
8640
8640
  return React__default.createElement("div", {
8641
8641
  className: classnames(styles$L['data-table-cover-shadow'], (_classNames = {}, _classNames[styles$L['data-table-cover-shadow--left']] = showShadowOnLeft, _classNames[styles$L['data-table-cover-shadow--right']] = showShadowOnRight, _classNames)),
8642
8642
  style: {