Skip to content

Commit

Permalink
feat(script-component): HideScriptEventFunctionGroupForAdd,HideScript…
Browse files Browse the repository at this point in the history
…EventFunctionGroupForChange now not dispatch
  • Loading branch information
yyc-git committed Apr 4, 2019
1 parent bc26270 commit f21fa91
Showing 1 changed file with 10 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,27 +440,17 @@ let reducer = ((uiState, dispatchFunc) as reduxTuple, action, state) =>
unUsedScriptEventFunctionNodeIds,
})
| HideScriptEventFunctionGroupForAdd =>
ReasonReactUtils.updateWithSideEffects(
{
...state,
isShowScriptEventFunctionGroupForAdd: false,
lastScriptEventFunctionNodeIdForAdd: None,
},
_state =>
dispatchFunc(AppStore.UpdateAction(Update([|UpdateStore.Inspector|])))
|> ignore
)
ReasonReact.Update({
...state,
isShowScriptEventFunctionGroupForAdd: false,
lastScriptEventFunctionNodeIdForAdd: None,
})
| HideScriptEventFunctionGroupForChange =>
ReasonReactUtils.updateWithSideEffects(
{
...state,
isShowScriptEventFunctionGroupForChange: false,
lastScriptEventFunctionNodeIdForChange: None,
},
_state =>
dispatchFunc(AppStore.UpdateAction(Update([|UpdateStore.Inspector|])))
|> ignore
)
ReasonReact.Update({
...state,
isShowScriptEventFunctionGroupForChange: false,
lastScriptEventFunctionNodeIdForChange: None,
})
};

let render =
Expand Down

0 comments on commit f21fa91

Please sign in to comment.