diff --git a/ui/src/views/actions/thunks.ts b/ui/src/views/actions/thunks.ts index 6558aaf5f33..44cffdd966d 100644 --- a/ui/src/views/actions/thunks.ts +++ b/ui/src/views/actions/thunks.ts @@ -82,7 +82,11 @@ export const updateViewAndVariables = ( const views = getViewsForDashboard(getState(), dashboardID) - views.splice(views.findIndex(v => v.id === newView.id), 1, newView) + views.splice( + views.findIndex(v => v.id === newView.id), + 1, + newView + ) const normView = normalize(newView, viewSchema)