Skip to content

Commit 898a1e4

Browse files
committed
Fix old references to contextSetupHook (without the s)
1 parent e7b0945 commit 898a1e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/rce.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,11 +671,11 @@ export async function RCEActionHandler(actionData: ActionData) {
671671
return;
672672
}
673673

674-
if (action.contextSetupHook) {
674+
if (action.contextSetupHooks) {
675675
context.lifecycle.setupHooks = false;
676676
// TODO: Add documentation for handling if a value already exists in case of async race timing and all that
677677
const setupArray = [];
678-
for (const hook of action.contextSetupHook) {
678+
for (const hook of action.contextSetupHooks) {
679679
setupArray.push(hook(context));
680680
}
681681
Promise.allSettled(setupArray).then(() => context!.lifecycle.setupHooks = true);

0 commit comments

Comments
 (0)