fix: allow empty actions
This commit is contained in:
parent
9e3124d29e
commit
f866284240
@ -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
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user