fix: allow empty actions
(cherry picked from commit f866284240088e75aece066fe94c7fdc947acb33)
This commit is contained in:
parent
6813bc6caf
commit
701178cdcf
@ -37,8 +37,8 @@ import { isMobileView } from '@/composables/settings'
|
|||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
actions: {
|
actions: {
|
||||||
type: Object,
|
type: [Object, Array, undefined],
|
||||||
required: true,
|
default: () => [],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ const groupedActions = computed(() => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
_actions = _actions.concat(
|
_actions = _actions.concat(
|
||||||
props.actions.filter((action) => action.group && !action.buttonLabel)
|
props.actions.filter((action) => action.group && !action.buttonLabel),
|
||||||
)
|
)
|
||||||
return _actions
|
return _actions
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user