mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 22:45:25 +00:00
add: global env var in codegen url interpolation (#5397)
This commit is contained in:
@@ -37,7 +37,9 @@ const GenerateCodeItem = ({ collectionUid, item, onClose }) => {
|
||||
const requestUrl =
|
||||
get(item, 'draft.request.url') !== undefined ? get(item, 'draft.request.url') : get(item, 'request.url');
|
||||
|
||||
const variables = getAllVariables(collection, item);
|
||||
const variables = useMemo(() => {
|
||||
return getAllVariables({ ...collection, globalEnvironmentVariables }, item);
|
||||
}, [collection, globalEnvironmentVariables, item]);
|
||||
|
||||
const interpolatedUrl = interpolateUrl({
|
||||
url: requestUrl,
|
||||
|
||||
Reference in New Issue
Block a user