Chore: add generics to backendSrv (#51606)

This commit is contained in:
Ryan McKinley
2022-06-30 11:34:23 -07:00
committed by GitHub
parent d59db0b8e6
commit 281ed419a8
5 changed files with 38 additions and 35 deletions

View File

@@ -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)] = {