Skip to content

Commit

Permalink
fix: Correct the issue where build_id may be incorrectly passed on th…
Browse files Browse the repository at this point in the history
…e setup page
  • Loading branch information
vvbbnn00 committed Mar 18, 2024
1 parent d71f285 commit 5d2f11b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/src/pages/setup/step-1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export default function OAuthStep1({ installed, apiConfig, build_id }) {
const router = useRouter()
if (installed) {
router.query.path = router.pathname.substring(1).split('/')
return Folders(build_id)
//@ts-ignore
return Folders({ build_id })
}

return (
Expand Down
3 changes: 2 additions & 1 deletion app/src/pages/setup/step-2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export default function OAuthStep2({ installed, redirectUri, oAuthUrl, build_id

if (installed) {
router.query.path = router.pathname.substring(1).split('/')
return Folders(build_id)
//@ts-ignore
return Folders({ build_id })
}

return (
Expand Down
3 changes: 2 additions & 1 deletion app/src/pages/setup/step-3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export default function OAuthStep3({ accessToken, expiryTime, refreshToken, erro

if (installed) {
router.query.path = router.pathname.substring(1).split('/')
return Folders(build_id)
//@ts-ignore
return Folders({ build_id })
}

const sendAuthTokensToServer = async () => {
Expand Down

0 comments on commit 5d2f11b

Please sign in to comment.