Skip to content

Commit

Permalink
fix: Collection level Get Access Token action executes script block t…
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrygamat committed Apr 14, 2024
1 parent 6511ac6 commit 85600d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/bruno-electron/src/ipc/network/index.js
Expand Up @@ -645,6 +645,9 @@ const registerNetworkIpc = (mainWindow) => {
const _request = collectionRoot?.request;
const request = prepareRequest(_request, collectionRoot, collectionPath);

// Script from this collection-level pseudo-request should be erased as it duplicates the collection script
delete request.script;

const envVars = getEnvVars(environment);
const processEnvVars = getProcessEnvVars(collectionUid);
const brunoConfig = getBrunoConfig(collectionUid);
Expand Down

0 comments on commit 85600d8

Please sign in to comment.