We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent def66ee commit d913179Copy full SHA for d913179
packages/core/helpers/metrics/utils.ts
@@ -1,5 +1,5 @@
1
const getVizTitle = (config) => {
2
- if (config.type === 'dashboard') {
+ if (config?.type === 'dashboard') {
3
return String(config?.dashboard?.title).toLowerCase()
4
}
5
if (config?.title) {
@@ -12,7 +12,7 @@ const getVizTitle = (config) => {
12
13
14
const getVizSubType = config => {
15
- if (config.type === 'markup-include') {
+ if (config?.type === 'markup-include') {
16
return `${config?.contentEditor?.title}`
17
18
if (config?.general?.geoType) {
0 commit comments