Skip to content

Commit f549801

Browse files
committed
[Fix]: #1826 refresh folder on press enter
1 parent 1b7d4b9 commit f549801

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

client/packages/lowcoder/src/pages/ApplicationV2/useCreateFolder.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ export function useCreateFolder(setModify: any, modify: boolean) {
5050
onPressEnter={() => {
5151
form.validateFields().then(() => {
5252
dispatchCreateFolder(
53-
() => modal?.destroy(),
53+
() => {
54+
modal?.destroy();
55+
setTimeout(() => {
56+
setModify(!modify);
57+
}, 200);
58+
},
5459
() => {}
5560
);
5661
});

0 commit comments

Comments
 (0)