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 f2e8f5d commit aa78890Copy full SHA for aa78890
src/components/editor/action/EditorActionAdd.tsx
@@ -100,6 +100,13 @@ export const EditorActionAdd = ({
100
[type],
101
)
102
103
+ useEffect(() => {
104
+ if (editingAction?.type) {
105
+ setValue('type', editingAction.type)
106
+ }
107
+ // eslint-disable-next-line react-hooks/exhaustive-deps
108
+ }, [editingAction?._id, setValue])
109
+
110
useEffect(() => {
111
if (editingAction) {
112
// 修复切换type的时候,数据丢失的问题
0 commit comments