Skip to content

Commit 0338ba9

Browse files
authored
Update code example in RTK-Query docs
1 parent 081f81d commit 0338ba9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rtk-query/usage-with-typescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ function PostDetail() {
578578
if (error) {
579579
if ('status' in error) {
580580
// you can access all properties of `FetchBaseQueryError` here
581-
const errMsg = 'error' in err ? err.error : JSON.stringify(err.data)
581+
const errMsg = 'error' in error ? error.error : JSON.stringify(error.data)
582582

583583
return (
584584
<div>

0 commit comments

Comments
 (0)