Skip to content

Commit

Permalink
fix issue with empty env when using auth
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Apr 13, 2024
1 parent 97a7539 commit 712098b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export interface GlobalHelperContext {

export interface ScriptTranformResult {
requestScriptLogs: LogLine[];
environment: IEnvironment;
additionalHeaders: HeaderState;
environment?: IEnvironment;
}

export type SameSite = 'Lax' | 'None' | 'Strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export class QueryService {
preTransformedData = preTransformedData ?? {
additionalHeaders: [],
requestScriptLogs: [],
environment: {},
};
preTransformedData.additionalHeaders = [
...(preTransformedData?.additionalHeaders ?? []),
Expand Down

0 comments on commit 712098b

Please sign in to comment.