Skip to content

Commit 95131eb

Browse files
authored
Merge pull request #2289 from thezanke/usage-with-typescript-example-fix
2 parents 081f81d + 0338ba9 commit 95131eb

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)