Skip to content
Snippets Groups Projects
Commit efd15f03 authored by mateusz-winiarczyk's avatar mateusz-winiarczyk
Browse files

feat(plugins): add registerplugin reducer rejected case

parent bf35ee73
No related branches found
No related tags found
3 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!122feat: add main plugins drawer with tabs (MIN-232),!116feat(plugins): Plugin loading management (MIN-233)
......@@ -20,4 +20,11 @@ export const registerPluginReducer = (builder: ActionReducerMapBuilder<PluginsSt
state.data[hash] = action.payload;
}
});
builder.addCase(registerPlugin.rejected, (state, action) => {
if (action.payload) {
const { hash } = action.meta.arg;
state.pluginsId = state.pluginsId.filter(pluginId => pluginId !== hash);
}
});
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment