docs: fix afterErrorHook export name in collection hooks (#11821)

## What
This PR fixes the exported hook name in the collection hooks
documentation example.

### Why
The documentation example shows an incorrect/inconsistent export name
for the collection hook example.

### How
Updated the hook export name to follow consistent naming patterns used
throughout the documentation.

### Type of Change
- [x] Documentation update
This commit is contained in:
Matthew Crutchfield
2025-03-22 11:50:42 -04:00
committed by GitHub
parent 85db8ff54e
commit d20f06e4bf

View File

@@ -286,7 +286,7 @@ The `afterError` Hook is triggered when an error occurs in the Payload applicati
```ts ```ts
import type { CollectionAfterErrorHook } from 'payload'; import type { CollectionAfterErrorHook } from 'payload';
const afterDeleteHook: CollectionAfterErrorHook = async ({ const afterErrorHook: CollectionAfterErrorHook = async ({
req, req,
id, id,
doc, doc,