Allow rearrangement of table items in params, body, vars, headers, etc… (#3801)

* Allow rearrangement of table items in params, body, vars, headers, and assert

* updated drag function name
This commit is contained in:
naman-bruno
2025-01-16 20:06:53 +05:30
committed by GitHub
parent 5b04e0c189
commit 472b5452f7
13 changed files with 417 additions and 281 deletions

View File

@@ -103,7 +103,7 @@ const QueryParams = ({ item, collection }) => {
);
};
const handleParamDrag = ({ updateReorderedItem }) => {
const handleQueryParamDrag = ({ updateReorderedItem }) => {
dispatch(
moveQueryParam({
collectionUid: collection.uid,
@@ -124,7 +124,7 @@ const QueryParams = ({ item, collection }) => {
{ name: '', accessor: '', width: '13%' }
]}
>
<ReorderTable updateReorderedItem={handleParamDrag}>
<ReorderTable updateReorderedItem={handleQueryParamDrag}>
{queryParams && queryParams.length
? queryParams.map((param, index) => (
<tr key={param.uid} data-uid={param.uid}>