mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
refactor: change notification limit
This commit is contained in:
1 parent
e2d2c43a82
commit
b0cc129834
1 file changed
+1
-1
@@ -33,7 +33,7 @@ export const addNotification = (notification: Omit<Notification, 'id'>) => {
|
||||
|
||||
const n = { ...defaults, ...notification };
|
||||
notifications.update((all) => {
|
||||
return [n, ...all.slice(0, 2)];
|
||||
return [n, ...all.slice(0, 4)];
|
||||
});
|
||||
|
||||
if (n.timeout) setTimeout(() => dismissNotification(n.id), n.timeout);
|
||||
|
||||
Reference in new issue
Block a user