Skip to content

Commit

Permalink
fix : 更新节点描述应该及时刷新editor节点中的描述字
Browse files Browse the repository at this point in the history
  • Loading branch information
pojol committed Jun 30, 2023
1 parent 5549f32 commit 4fc80ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/src/pages/edit/node/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import PubSub from "pubsub-js";
import Topic from "@/constant/topic";

import { getDefaultNodeNotifyInfo } from '@/models/node';
import { UpdateType, nodeUpdate, find } from '@/models/newtree';
import { UpdateType, nodeUpdate, find, nodeRedraw } from '@/models/newtree';
import { delay } from '@/utils/timer';

import CodeMirror from '@uiw/react-codemirror';
Expand Down Expand Up @@ -113,6 +113,7 @@ export default function ActionTab() {
info: info,
type: [UpdateType.UpdateCode, UpdateType.UpdateAlias]
}))
dispatch(nodeRedraw())
};

const onChange = React.useCallback((value:any, viewUpdate:any) => {
Expand Down

0 comments on commit 4fc80ba

Please sign in to comment.