Skip to content

Commit 0b3212d

Browse files
committed
docs: update action handler to be asynchronous
1 parent 4273e7a commit 0b3212d

File tree

1 file changed

+1
-1
lines changed
  • adminforth/documentation/docs/tutorial/03-Customization

1 file changed

+1
-1
lines changed

adminforth/documentation/docs/tutorial/03-Customization/09-Actions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Here's how to add a custom action:
2121
},
2222

2323
// Handler function when action is triggered
24-
action: ({ recordId, adminUser }) => {
24+
action: async ({ recordId, adminUser }) => {
2525
console.log("auto submit", recordId, adminUser);
2626
return {
2727
ok: true,

0 commit comments

Comments
 (0)