Skip to content

Commit

Permalink
Update packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/…
Browse files Browse the repository at this point in the history
…index.js

Co-authored-by: Timon <[email protected]>
  • Loading branch information
SoulKa and Its-treason authored Feb 19, 2024
1 parent 28b773d commit 6561fda
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const BearerAuth = ({ item, collection }) => {
const dispatch = useDispatch();
const { storedTheme } = useTheme();

const bearerToken =
const bearerToken = item.draft
? get(item, 'draft.request.auth.bearer.token', '')
: get(item, 'request.auth.bearer.token', '');
(item.draft ? get(item, 'draft.request.auth.bearer.token') : get(item, 'request.auth.bearer.token')) ?? '';

const handleRun = () => dispatch(sendRequest(item, collection.uid));
Expand Down

0 comments on commit 6561fda

Please sign in to comment.