diff --git a/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/script/ui/MainEditorScript.re b/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/script/ui/MainEditorScript.re index 407408759..36127ab29 100644 --- a/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/script/ui/MainEditorScript.re +++ b/src/core/composable_component/mainEditor/composable_component/inspector/composable_component/sceneTree_Inspector/composable_component/script/ui/MainEditorScript.re @@ -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 =