mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-25 01:32:27 +01:00
fix (runtime): frontend crash when quitting without saving
Uncaught TypeError: Cannot read properties of undefined (reading 'then')
ide.js:43 Uncaught TypeError: Cannot read properties of undefined (reading 'then')
at Object.no (ide.js:43:21)
at ModalConfirm.no (confirm.js:39:28)
This commit is contained in:
parent
f72b630e50
commit
2684dd26db
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ export function ViewerPageComponent({ error, subscribe, unsubscribe, match, loca
|
|||
|
||||
const needSaving = (bool) => {
|
||||
setState({ needSaving: bool });
|
||||
return Promise.resolve();
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue