Skip to content

Commit f2e8f5d

Browse files
author
gemini2035
committed
fix: type of operation can not be modified.
1 parent 3a48c61 commit f2e8f5d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/components/editor/action/EditorActionAdd.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ export const EditorActionAdd = ({
102102

103103
useEffect(() => {
104104
if (editingAction) {
105-
if ('type' in editingAction) {
106-
setValue('type', editingAction.type)
107-
}
108105
// 修复切换type的时候,数据丢失的问题
109106
// 原因:因为切换type的时候会触发页面绘制,导致form和对应的item组件丢失绑定,
110107
// 当重置时没办法正常清空item组件内部的值。

0 commit comments

Comments
 (0)