Skip to content

Commit 6b9ef3a

Browse files
author
Vitalii Kulyk
committed
fix: make 'actionId' optional in executeCustomAction and executeCustomBulkAction functions
1 parent e540dd7 commit 6b9ef3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adminforth/spa/src/utils/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ export async function executeCustomAction({
701701
onError,
702702
setLoadingState,
703703
}: {
704-
actionId: string | number,
704+
actionId: string | number | undefined,
705705
resourceId: string,
706706
recordId: string | number,
707707
extra?: Record<string, any>,
@@ -767,7 +767,7 @@ export async function executeCustomBulkAction({
767767
setLoadingState,
768768
confirmMessage,
769769
}: {
770-
actionId: string | number,
770+
actionId: string | number | undefined,
771771
resourceId: string,
772772
recordIds: (string | number)[],
773773
extra?: Record<string, any>,

0 commit comments

Comments
 (0)