Skip to content

Commit 1722e96

Browse files
committed
merge test
2 parents 7a0d61e + 78ea0e0 commit 1722e96

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ ehthumbs.db
88
Thumbs.db
99

1010
# IDE Specific
11-
CLAUDE.local.md
1211
.claude
12+
CLAUDE.local.md
1313
nbproject
1414
.~lock.*
1515
.buildpath

packages/dashboard/src/helpers/getFilteredData.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { getVizKeys } from './getVizKeys'
77

88
export const getApplicableFilters = (dashboard: Dashboard, key: string | number): false | SharedFilter[] => {
99
const c = dashboard.sharedFilters?.filter(
10-
sharedFilter => (sharedFilter.usedBy && sharedFilter.usedBy.indexOf(`${key}`) !== -1) || sharedFilter.usedBy?.indexOf(key) !== -1
10+
sharedFilter =>
11+
(sharedFilter.usedBy && sharedFilter.usedBy.indexOf(`${key}`) !== -1) || sharedFilter.usedBy?.indexOf(key) !== -1
1112
)
1213
return c?.length > 0 ? c : false
1314
}

packages/dashboard/src/helpers/getVizConfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ export const getFootnotesVizConfig = (
2626
if (matchingFilters.length) {
2727
visualizationConfig.footnotes.data = filterData(matchingFilters, data)
2828
} else {
29-
visualizationConfig.footnotes.data = data
29+
if (visualizationConfig.footnotes.data) {
30+
visualizationConfig.footnotes.data = data
31+
}
3032
}
3133

3234
return visualizationConfig

0 commit comments

Comments
 (0)