fix: deleting Scratch Pad causes fatal error and application does not recover (#6910) (#6912)

This commit is contained in:
zhengjitf 2023-12-13 18:39:21 +08:00 committed by GitHub
parent 832443011c
commit e74f38e121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,16 +141,16 @@ export const WorkspaceDropdown: FC = () => {
),
});
},
},
{
id: 'delete',
name: 'Delete',
icon: <Icon icon='trash' />,
action: () => {
setIsDeleteRemoteWorkspaceModalOpen(true);
},
}] : [],
{
id: 'delete',
name: 'Delete',
icon: <Icon icon='trash' />,
action: () => {
setIsDeleteRemoteWorkspaceModalOpen(true);
},
},
{
id: 'import',
name: 'Import',
icon: <Icon icon='file-import' />,