mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: add generics to backendSrv (#51606)
This commit is contained in:
@@ -79,7 +79,8 @@ const slice = createSlice({
|
||||
// TODO<remove once the "plugin_admin_enabled" feature flag is removed>
|
||||
.addCase(loadPluginDashboards.fulfilled, (state, action) => {
|
||||
state.isLoadingPluginDashboards = false;
|
||||
state.dashboards = action.payload;
|
||||
// eslint-disable-next-line
|
||||
state.dashboards = action.payload as any; // WritableDraft<PluginDashboard>[],...>
|
||||
})
|
||||
.addMatcher(isPendingRequest, (state, action) => {
|
||||
state.requests[getOriginalActionType(action.type)] = {
|
||||
|
||||
Reference in New Issue
Block a user