Skip to content
Permalink
Browse files

feat(script-component): HideScriptEventFunctionGroupForAdd,HideScript…

…EventFunctionGroupForChange now not dispatch
  • Loading branch information...
yyc-git committed Apr 4, 2019
1 parent bc26270 commit f21fa91ad144b71a7d2d213ca5f3810838ff8133
@@ -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 =

0 comments on commit f21fa91

Please sign in to comment.
You can’t perform that action at this time.