mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix UI warnings when running make generate-dev (#4373)
This commit is contained in:
parent
6cffd5438f
commit
68ec3e22ce
3 changed files with 9 additions and 4 deletions
|
|
@ -4,7 +4,6 @@ import {
|
|||
LOGIN_REQUEST,
|
||||
LOGIN_SUCCESS,
|
||||
UPDATE_USER_FAILURE,
|
||||
UPDATE_USER_REQUEST,
|
||||
UPDATE_USER_SUCCESS,
|
||||
LOGOUT_FAILURE,
|
||||
LOGOUT_REQUEST,
|
||||
|
|
@ -38,7 +37,6 @@ const reducer = (state = initialState, action) => {
|
|||
};
|
||||
case LOGIN_REQUEST:
|
||||
case LOGOUT_REQUEST:
|
||||
case UPDATE_USER_REQUEST:
|
||||
case SSO_REDIRECT_REQUEST:
|
||||
case SSO_SETTINGS_REQUEST:
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
import { destroyFunc, update } from "redux/nodes/entities/campaigns/helpers";
|
||||
import {
|
||||
destroyFunc,
|
||||
updateCampaignState,
|
||||
} from "redux/nodes/entities/campaigns/helpers";
|
||||
import Fleet from "fleet";
|
||||
import Config from "redux/nodes/entities/base/config";
|
||||
import schemas from "redux/nodes/entities/base/schemas";
|
||||
|
|
@ -8,7 +11,9 @@ const { CAMPAIGNS: schema } = schemas;
|
|||
export default new Config({
|
||||
createFunc: Fleet.queries.run,
|
||||
destroyFunc,
|
||||
updateFunc: update,
|
||||
updateFunc: updateCampaignState,
|
||||
entityName: "campaigns",
|
||||
schema,
|
||||
});
|
||||
|
||||
export const initialState = Object.assign({}, Config.initialState);
|
||||
|
|
|
|||
|
|
@ -12,3 +12,5 @@ export default new Config({
|
|||
schema: USERS,
|
||||
updateFunc: Fleet.users.update,
|
||||
});
|
||||
|
||||
export const initialState = Object.assign({}, Config.initialState);
|
||||
|
|
|
|||
Loading…
Reference in a new issue