Skip to content

Commit

Permalink
reason any
Browse files Browse the repository at this point in the history
  • Loading branch information
parkiino committed Apr 9, 2020
1 parent 0e8aa04 commit 817c4bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const policyDetailsReducer: Reducer<PolicyDetailsState, AppAction> = (

if (action.type === 'userChangedPolicyConfig') {
const newState = { ...state, policyItem: { ...(state.policyItem as PolicyData) } };
const newPolicy = (newState.policyItem.inputs[0].config.policy.value = {
const newPolicy: any = (newState.policyItem.inputs[0].config.policy.value = {
...fullPolicy(state),
});

Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/endpoint/public/applications/endpoint/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export interface PolicyListState {
/**
* Policy details store state
*/
export interface PolicyDetailsState {
export type PolicyDetailsState = Immutable<{
/** A single policy item */
policyItem?: PolicyData;
/** API error if loading data failed */
Expand All @@ -112,7 +112,7 @@ export interface PolicyDetailsState {
success: boolean;
error?: ServerApiError;
};
}
}>;

/**
* Endpoint Policy configuration
Expand Down

0 comments on commit 817c4bb

Please sign in to comment.