Skip to content

Commit

Permalink
Fix Sporadic Typing in Test Inputs
Browse files Browse the repository at this point in the history
Note: this breaks the drag & drop (reordering) feature that was introduced by Kong#7020. There are other ways to "reintroduce" this feature using <div> elements, but this is outside of my area of expertise.
  • Loading branch information
branbarh committed Apr 19, 2024
1 parent 1d132b7 commit b93dcae
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions packages/insomnia/src/ui/routes/test-suite.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -565,25 +565,17 @@ const TestSuiteRoute = () => {
</div>
)}
{unitTests.length > 0 && (
<ListBox
dragAndDropHooks={unitTestsDragAndDrop.dragAndDropHooks}
items={unitTests.map(unitTest => ({
...unitTest,
id: unitTest._id,
key: unitTest._id,
}))}
className="flex-1 flex flex-col divide-y divide-solid divide-[--hl-md] overflow-y-auto"
>
{unitTest => (
<ListBoxItem className="outline-none">
<div className="flex-1 flex flex-col divide-y divide-solid divide-[--hl-md] overflow-y-auto">
{unitTests.map(unitTest => (
<div key={unitTest._id} className="outline-none">
<Button slot="drag" className="hidden" />
<UnitTestItemView
unitTest={unitTest}
testsRunning={testsRunning}
/>
</ListBoxItem>
)}
</ListBox>
</div>
))}
</div>
)}
</div>
);
Expand Down

0 comments on commit b93dcae

Please sign in to comment.