Skip to content

Commit 381ddfb

Browse files
committed
fix: prevent internal server error by validating request body
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> AdminForth/1729/internal-server-error-when-i-m
1 parent 8a06455 commit 381ddfb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export default class ForeignInlineListPlugin extends AdminForthPlugin {
7878
this.adminforth
7979
);
8080

81-
const action = resourceCopy.options.bulkActions.find((act) => act.id == actionId);
81+
const action = resourceCopy.options.bulkActions?.find((act) => act.id == actionId);
8282
if (!action) {
8383
return { error: await tr(`Action {actionId} not found`, 'errors', { actionId }) };
8484
}

0 commit comments

Comments
 (0)