From 6561fda2d581aecd1e365cb76e25d712c479929e Mon Sep 17 00:00:00 2001 From: Louis <15342503+SoulKa@users.noreply.github.com> Date: Mon, 19 Feb 2024 11:40:15 +0100 Subject: [PATCH] Update packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js Co-authored-by: Timon <39559178+Its-treason@users.noreply.github.com> --- .../src/components/RequestPane/Auth/BearerAuth/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js b/packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js index c5c8b5c368..e650bd3e62 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/BearerAuth/index.js @@ -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));