Skip to content

Commit 6009f1d

Browse files
author
issayah
committed
BToaster instance possibly undefined fix
1 parent e7eca4b commit 6009f1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/BToast/BToaster.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div :class="[positionClass]" class="b-toaster position-fixed p-3" style="z-index: 11">
33
<b-toast
4-
v-for="toast in instance.toasts(position).value"
4+
v-for="toast in instance?.toasts(position).value"
55
:id="toast.options.id"
66
:key="toast.options.id"
77
v-model="toast.options.value"
@@ -23,7 +23,7 @@ import type {ToastInstance} from '@/components/BToast/plugin'
2323
2424
interface BToasterProps {
2525
position?: ContainerPosition
26-
instance: ToastInstance
26+
instance?: ToastInstance
2727
// appendToast?: boolean
2828
}
2929

0 commit comments

Comments
 (0)