ImportDashboard: Fixes backend handler not found error when importing dashboard (#32391)

This commit is contained in:
Torkel Ödegaard 2021-03-29 08:13:49 +02:00 committed by GitHub
parent 0779dab0de
commit 27aa7bb900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,12 +334,12 @@ func (dr *dashboardServiceImpl) ImportDashboard(dto *SaveDashboardDTO) (
return nil, err
}
err = bus.Dispatch(cmd)
dash, err := dr.dashboardStore.SaveDashboard(*cmd)
if err != nil {
return nil, err
}
return cmd.Result, nil
return dash, nil
}
// UnprovisionDashboard removes info about dashboard being provisioned. Used after provisioning configs are changed