Skip to content

Commit

Permalink
[Fix] fix resource tree cannot refresh (DataLinkDC#3406)
Browse files Browse the repository at this point in the history
Signed-off-by: Zzm0809 <[email protected]>
  • Loading branch information
Zzm0809 authored Apr 17, 2024
1 parent 2fd0baa commit e7bf47f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,9 @@ const ResourceOverView: React.FC<connect> = (props) => {
await handleOption(API_CONSTANTS.RESOURCE_CREATE_FOLDER, l('right.menu.createFolder'), {
...value,
pid
});
setResourceState((prevState) => ({ ...prevState, editOpen: false }));
}, ()=> handleModalCancel());
} else if (editModal === 'rename') {
await handleOption(API_CONSTANTS.RESOURCE_RENAME, l('right.menu.rename'), { ...value, pid });
await handleOption(API_CONSTANTS.RESOURCE_RENAME, l('right.menu.rename'), { ...value, pid },()=> handleModalCancel());
}
};
const handleUploadCancel = async () => {
Expand Down

0 comments on commit e7bf47f

Please sign in to comment.