mirror of
https://github.com/Kong/insomnia.git
synced 2026-07-30 09:16:44 -04:00
fix curl modal not showing issue (#10235)
This commit is contained in:
@@ -1122,30 +1122,6 @@ const Debug = () => {
|
||||
</GridList>
|
||||
</div>
|
||||
</div>
|
||||
{isImportModalOpen && (
|
||||
<ImportModal
|
||||
onHide={() => setIsImportModalOpen(false)}
|
||||
from={{ type: 'file' }}
|
||||
projectName={activeProject.name ?? getProductName()}
|
||||
workspaceName={activeWorkspace.name}
|
||||
organizationId={organizationId}
|
||||
defaultProjectId={projectId}
|
||||
defaultWorkspaceId={workspaceId}
|
||||
/>
|
||||
)}
|
||||
{isPasteCurlModalOpen && (
|
||||
<PasteCurlModal
|
||||
onImport={req => {
|
||||
createRequest({
|
||||
requestType: 'From Curl',
|
||||
parentId: workspaceId,
|
||||
req,
|
||||
});
|
||||
}}
|
||||
defaultValue={pastedCurl}
|
||||
onHide={() => setPasteCurlModalOpen(false)}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</Panel>
|
||||
<PanelResizeHandle className="h-full w-px bg-(--hl-md)" />
|
||||
@@ -1220,6 +1196,30 @@ const Debug = () => {
|
||||
</PanelGroup>
|
||||
</Panel>
|
||||
</PanelGroup>
|
||||
{isImportModalOpen && (
|
||||
<ImportModal
|
||||
onHide={() => setIsImportModalOpen(false)}
|
||||
from={{ type: 'file' }}
|
||||
projectName={activeProject.name ?? getProductName()}
|
||||
workspaceName={activeWorkspace.name}
|
||||
organizationId={organizationId}
|
||||
defaultProjectId={projectId}
|
||||
defaultWorkspaceId={workspaceId}
|
||||
/>
|
||||
)}
|
||||
{isPasteCurlModalOpen && (
|
||||
<PasteCurlModal
|
||||
onImport={req => {
|
||||
createRequest({
|
||||
requestType: 'From Curl',
|
||||
parentId: workspaceId,
|
||||
req,
|
||||
});
|
||||
}}
|
||||
defaultValue={pastedCurl}
|
||||
onHide={() => setPasteCurlModalOpen(false)}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user