Skip to content

Commit eb1199c

Browse files
author
Vitalii Kulyk
committed
fix: add conditional rendering for custom component in ThreeDotsMenu
1 parent 2187d12 commit eb1199c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
}"
3131
@click="injectedComponentClick(i)"
3232
>
33-
<div class="wrapper">
33+
<div class="wrapper" v-if="getCustomComponent(item)">
3434
<component
35-
:ref="(el: any) => setComponentRef(el, i)" :is="getCustomComponent(item)"
35+
:ref="(el: any) => setComponentRef(el, i)" :is="getCustomComponent(item)!"
3636
:meta="item.meta"
3737
:resource="coreStore.resource"
3838
:adminUser="coreStore.adminUser"

0 commit comments

Comments
 (0)