Commit 9e938b81 authored by David O'Regan's avatar David O'Regan

Merge branch 'master' into 'master'

Fixed metricsDashboard is null then receiveDashboardValidationWarningsFailure

See merge request gitlab-org/gitlab!82876
parents d19de7e0 da23f331
......@@ -385,7 +385,7 @@ export const fetchDashboardValidationWarnings = ({ state, dispatch, getters }) =
dashboardPath,
},
})
.then((resp) => resp.data?.project?.environments?.nodes?.[0]?.metricsDashboard)
.then((resp) => resp.data?.project?.environments?.nodes?.[0]?.metricsDashboard || undefined)
.then(({ schemaValidationWarnings } = {}) => {
const hasWarnings = schemaValidationWarnings && schemaValidationWarnings.length !== 0;
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment