From f866284240088e75aece066fe94c7fdc947acb33 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 7 May 2025 13:59:55 +0530 Subject: [PATCH] fix: allow empty actions --- frontend/src/components/CustomActions.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/CustomActions.vue b/frontend/src/components/CustomActions.vue index af49ab2d..8bb4b6d0 100644 --- a/frontend/src/components/CustomActions.vue +++ b/frontend/src/components/CustomActions.vue @@ -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 })