Skip to content

Commit 0c8d6c6

Browse files
committed
error page reload workaround
1 parent 5746986 commit 0c8d6c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/sensenet/src/components/dialogs/error-dialog.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ export function ErrorDialog(props: ErrorBoundaryState) {
2828
<Button
2929
aria-label={localization.reload}
3030
className={globalClasses.cancelButton}
31-
onClick={() => window.location.reload()}>
31+
onClick={() => {
32+
window.history.back()
33+
setTimeout(() => window.location.reload(), 10)
34+
}}>
3235
<RefreshTwoTone />
3336
{localization.reload}
3437
</Button>

0 commit comments

Comments
 (0)