datastake-daf 0.6.172 → 0.6.173

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.
@@ -12414,7 +12414,7 @@ const useHeader = _ref => {
12414
12414
  filtersConfig = {}
12415
12415
  } = _ref;
12416
12416
  const [showFilters, setShowFilters] = React.useState(false);
12417
- const hasFilters = !!filtersConfig;
12417
+ const hasFilters = filtersConfig && Object.keys(filtersConfig).length > 0;
12418
12418
  const downloadButtonAction = app && app === 'sbg' && isViewMode ? null : {
12419
12419
  onClick: onDownload,
12420
12420
  disabled: downloadDisabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.172",
3
+ "version": "0.6.173",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -32,7 +32,7 @@ export const useHeader = ({
32
32
  filtersConfig = {},
33
33
  }) => {
34
34
  const [showFilters, setShowFilters] = useState(false)
35
- const hasFilters = !!filtersConfig
35
+ const hasFilters = filtersConfig && Object.keys(filtersConfig).length > 0
36
36
  const downloadButtonAction = app && app === 'sbg' && isViewMode ? null : {
37
37
  onClick: onDownload,
38
38
  disabled: downloadDisabled,