From d80f3cd75e700b6e62910865bfd36734644ffa89 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 4 Mar 2020 09:08:20 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- app/assets/javascripts/monitoring/stores/actions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/assets/javascripts/monitoring/stores') diff --git a/app/assets/javascripts/monitoring/stores/actions.js b/app/assets/javascripts/monitoring/stores/actions.js index aa6c35d97be..7d0d37c1a20 100644 --- a/app/assets/javascripts/monitoring/stores/actions.js +++ b/app/assets/javascripts/monitoring/stores/actions.js @@ -79,7 +79,7 @@ export const fetchData = ({ dispatch }) => { dispatch('fetchEnvironmentsData'); }; -export const fetchDashboard = ({ state, dispatch }) => { +export const fetchDashboard = ({ state, commit, dispatch }) => { dispatch('requestMetricsDashboard'); const params = {}; @@ -100,6 +100,7 @@ export const fetchDashboard = ({ state, dispatch }) => { .catch(error => { Sentry.captureException(error); + commit(types.SET_ALL_DASHBOARDS, error.response?.data?.all_dashboards ?? []); dispatch('receiveMetricsDashboardFailure', error); if (state.showErrorBanner) { -- cgit v1.2.1