Skip to content

Commit 6a040b9

Browse files
committed
Revert "fix: ensure meta is defined for custom components in ThreeDotsMenu"
This reverts commit 63b0e3a.
1 parent 63b0e3a commit 6a040b9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adminforth/spa/src/components/ThreeDotsMenu.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@
4646
<li v-for="action in customActions" :key="action.id">
4747
<div class="wrapper">
4848
<component
49+
v-if="action.customComponent"
4950
:is="(action.customComponent && getCustomComponent(formatComponent(action.customComponent))) || CallActionWrapper"
50-
:meta="formatComponent(action.customComponent as AdminForthComponentDeclarationFull).meta || {}"
51+
:meta="formatComponent(action.customComponent).meta"
5152
@callAction="(payload? : Object) => handleActionClick(action, payload)"
5253
>
5354
<a @click.prevent class="block px-4 py-2 hover:text-lightThreeDotsMenuBodyTextHover hover:bg-lightThreeDotsMenuBodyBackgroundHover dark:hover:bg-darkThreeDotsMenuBodyBackgroundHover dark:hover:text-darkThreeDotsMenuBodyTextHover">

0 commit comments

Comments
 (0)