fix: allow empty actions

(cherry picked from commit f866284240088e75aece066fe94c7fdc947acb33)
This commit is contained in:
Shariq Ansari 2025-05-07 13:59:55 +05:30 committed by Mergify
parent 6813bc6caf
commit 701178cdcf

View File

@ -37,8 +37,8 @@ import { isMobileView } from '@/composables/settings'
const props = defineProps({
actions: {
type: Object,
required: true,
type: [Object, Array, undefined],
default: () => [],
},
})
@ -85,7 +85,7 @@ const groupedActions = computed(() => {
})
}
_actions = _actions.concat(
props.actions.filter((action) => action.group && !action.buttonLabel)
props.actions.filter((action) => action.group && !action.buttonLabel),
)
return _actions
})