fix: content reload after import

This commit is contained in:
Emnaghz
2024-10-09 16:32:08 +01:00
parent fde4224703
commit 535b4f0f8e
6 changed files with 34 additions and 13 deletions

View File

@@ -43,7 +43,16 @@ export const DeleteDialog: FC<DeleteDialogProps> = ({
</Grid>
</DialogContent>
<DialogActions>
<Button variant="contained" color="error" onClick={callback} autoFocus>
<Button
variant="contained"
color="error"
onClick={() => {
if (callback) {
callback();
}
}}
autoFocus
>
{t("button.yes")}
</Button>
<Button variant="outlined" onClick={closeFunction}>