We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a48c61 commit f2e8f5dCopy full SHA for f2e8f5d
src/components/editor/action/EditorActionAdd.tsx
@@ -102,9 +102,6 @@ export const EditorActionAdd = ({
102
103
useEffect(() => {
104
if (editingAction) {
105
- if ('type' in editingAction) {
106
- setValue('type', editingAction.type)
107
- }
108
// 修复切换type的时候,数据丢失的问题
109
// 原因:因为切换type的时候会触发页面绘制,导致form和对应的item组件丢失绑定,
110
// 当重置时没办法正常清空item组件内部的值。
0 commit comments