fix(ui): remove err overlay, wrap notifications fetch in trycatch
This commit is contained in:
parent
7e59c646c9
commit
171253336b
2 changed files with 12 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -138,6 +138,13 @@ const config: Configuration = {
|
|||
hot: true,
|
||||
compress: true,
|
||||
allowedHosts: "all",
|
||||
client: {
|
||||
overlay: {
|
||||
errors: true,
|
||||
warnings: false,
|
||||
runtimeErrors: false,
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue