Do not show ErrorDialog on network errors

This commit is contained in:
Johannes Zellner
2025-12-20 07:55:27 +01:00
parent 1ea6fb9300
commit ad1fc9b9c7

View File

@@ -11,7 +11,7 @@ const stackTrace = ref('');
async function onError(error) {
// this is handled by the fetcher global error hook
if (error.status === 401 || error.status >= 502) return;
if (error.status === 401 || error.status >= 502 || error instanceof TypeError) return;
console.error(error);