File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -269,10 +269,6 @@ const deleteToast = () => {
269
269
// Save the offset for the exit swipe animation
270
270
removed .value = true
271
271
offsetBeforeRemove .value = offset .value
272
- const newHeights = props .heights .filter (
273
- (height ) => height .toastId !== props .toast .id
274
- )
275
- emit (' update:heights' , newHeights )
276
272
277
273
setTimeout (() => {
278
274
emit (' removeToast' , props .toast )
Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ const hotkeyLabel = props.hotkey
221
221
.replace (/ Digit/ g , ' ' )
222
222
223
223
function removeToast(toast : ToastT ) {
224
+ heights .value = heights .value .filter (({ toastId }) => toastId !== toast .id )
224
225
toasts .value = toasts .value .filter (({ id }) => id !== toast .id )
225
226
}
226
227
You can’t perform that action at this time.
0 commit comments