Skip to content

Commit

Permalink
Merge pull request #1116 from Tofandel/patch-1
Browse files Browse the repository at this point in the history
Update axios version
  • Loading branch information
reinink committed Mar 10, 2022
2 parents 4426587 + 672b106 commit 055c928
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/inertia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"watch": "microbundle watch --format cjs"
},
"dependencies": {
"axios": "^0.21.1",
"axios": "^0.26.0",
"deepmerge": "^4.0.0",
"qs": "^6.9.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/inertia/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ export class Router {
}

protected isLocationVisitResponse(response: AxiosResponse): boolean {
return response && response.status === 409 && response.headers['x-inertia-location']
return !!(response && response.status === 409 && response.headers['x-inertia-location'])
}

protected isInertiaResponse(response: AxiosResponse): boolean {
return response?.headers['x-inertia']
return !!response?.headers['x-inertia']
}

protected createVisitId(): VisitId {
Expand Down

0 comments on commit 055c928

Please sign in to comment.