Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Fix prompt being shown twice (#96) #102

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/insomnia/src/ui/components/request-url-bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useFetcher, useParams, useRouteLoaderData } from 'react-router-dom';
import { useInterval } from 'react-use';
import styled from 'styled-components';

import { RENDER_PURPOSE_SEND } from '../../common/render';
import { RENDER_PURPOSE_NO_RENDER } from '../../common/render';
import * as models from '../../models';
import { isEventStreamRequest } from '../../models/request';
import { fetchRequestData, tryToInterpolateRequest, tryToTransformRequestWithPlugins } from '../../network/network';
Expand Down Expand Up @@ -144,7 +144,7 @@ export const RequestUrlBar = forwardRef<RequestUrlBarHandle, Props>(({
const { request,
environment } = await fetchRequestData(requestId);

const renderResult = await tryToInterpolateRequest(request, environment._id, RENDER_PURPOSE_SEND);
const renderResult = await tryToInterpolateRequest(request, environment._id, RENDER_PURPOSE_NO_RENDER);
// ARCHY NOTE: HERE IS SEND
const renderedRequest = await tryToTransformRequestWithPlugins(renderResult);
renderedRequest && send({
Expand Down