Skip to content

Commit d913179

Browse files
committed
patch: fix dashboard expand/collapse
1 parent def66ee commit d913179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/helpers/metrics/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const getVizTitle = (config) => {
2-
if (config.type === 'dashboard') {
2+
if (config?.type === 'dashboard') {
33
return String(config?.dashboard?.title).toLowerCase()
44
}
55
if (config?.title) {
@@ -12,7 +12,7 @@ const getVizTitle = (config) => {
1212
}
1313

1414
const getVizSubType = config => {
15-
if (config.type === 'markup-include') {
15+
if (config?.type === 'markup-include') {
1616
return `${config?.contentEditor?.title}`
1717
}
1818
if (config?.general?.geoType) {

0 commit comments

Comments
 (0)