fix(ui): remove err overlay, wrap notifications fetch in trycatch

This commit is contained in:
nick-delirium 2023-12-08 10:46:34 +01:00
parent 7e59c646c9
commit 171253336b
2 changed files with 12 additions and 1 deletions

View file

@ -18,7 +18,11 @@ function Notifications() {
useEffect(() => {
const interval = setInterval(() => {
void notificationStore.fetchNotificationsCount();
try {
void notificationStore.fetchNotificationsCount();
} catch (e) {
console.error(e);
}
}, AUTOREFRESH_INTERVAL);
return () => clearInterval(interval);

View file

@ -138,6 +138,13 @@ const config: Configuration = {
hot: true,
compress: true,
allowedHosts: "all",
client: {
overlay: {
errors: true,
warnings: false,
runtimeErrors: false,
}
},
},
};