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.
package/dist/components/index.js
CHANGED
|
@@ -12414,7 +12414,7 @@ const useHeader = _ref => {
|
|
|
12414
12414
|
filtersConfig = {}
|
|
12415
12415
|
} = _ref;
|
|
12416
12416
|
const [showFilters, setShowFilters] = React.useState(false);
|
|
12417
|
-
const hasFilters =
|
|
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
|
@@ -32,7 +32,7 @@ export const useHeader = ({
|
|
|
32
32
|
filtersConfig = {},
|
|
33
33
|
}) => {
|
|
34
34
|
const [showFilters, setShowFilters] = useState(false)
|
|
35
|
-
const hasFilters =
|
|
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,
|