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:
committed by
GitHub
parent
85db8ff54e
commit
d20f06e4bf
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user