mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Revert "Add a warning for dismissing invalid toasts"
This reverts commit 3674b6446e4acddffdaf3a3c2c672f5bc53e810a.
This commit is contained in:
parent
3674b6446e
commit
dc23dd637c
@ -68,11 +68,6 @@ export default class ToastStore extends EventEmitter {
|
||||
}
|
||||
|
||||
dismissToast(key) {
|
||||
if (!this.toasts.some(t => t.key === key)) {
|
||||
console.warn(`No toast for ${key} found - cannot dismiss. Check your toastKey`);
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.toasts[0] && this.toasts[0].key === key) {
|
||||
this.countSeen++;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user