Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
  • Loading branch information
Murderlon and mifi authored Dec 16, 2024
1 parent 82a35b1 commit 8690893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@uppy/companion/src/server/provider/credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ exports.getCredentialsOverrideMiddleware = (providers, companionOptions) => {
// @ts-expect-error untyped
req.session.grant = {
// @ts-expect-error untyped
...(req.session.grant || {}),
...req.session.grant,
dynamic: {
// @ts-expect-error untyped
...(req.session.grant?.dynamic || {}),
...req.session.grant?.dynamic,
state: newState,
},
}
Expand Down

0 comments on commit 8690893

Please sign in to comment.