Skip to content

Commit

Permalink
updated drag function name
Browse files Browse the repository at this point in the history
  • Loading branch information
naman-bruno committed Jan 16, 2025
1 parent 0aaf636 commit 7ca06a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const Assertions = ({ item, collection }) => {
);
};

const handleParamDrag = ({ updateReorderedItem }) => {
const handleAssertionDrag = ({ updateReorderedItem }) => {
dispatch(
moveAssertion({
collectionUid: collection.uid,
Expand All @@ -80,7 +80,7 @@ const Assertions = ({ item, collection }) => {
{ name: '', accessor: '', width: '15%' }
]}
>
<ReorderTable updateReorderedItem={handleParamDrag}>
<ReorderTable updateReorderedItem={handleAssertionDrag}>
{assertions && assertions.length
? assertions.map((assertion) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const QueryParams = ({ item, collection }) => {
);
};

const handleParamDrag = ({ updateReorderedItem }) => {
const handleQueryParamDrag = ({ updateReorderedItem }) => {
dispatch(
moveQueryParam({
collectionUid: collection.uid,
Expand All @@ -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}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const RequestHeaders = ({ item, collection }) => {
);
};

const handleParamDrag = ({ updateReorderedItem }) => {
const handleHeaderDrag = ({ updateReorderedItem }) => {
dispatch(
moveRequestHeader({
collectionUid: collection.uid,
Expand All @@ -84,7 +84,7 @@ const RequestHeaders = ({ item, collection }) => {
{ name: '', accessor: '', width: '20%' }
]}
>
<ReorderTable updateReorderedItem={handleParamDrag}>
<ReorderTable updateReorderedItem={handleHeaderDrag}>
{headers && headers.length
? headers.map((header) => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const VarsTable = ({ item, collection, vars, varType }) => {
);
};

const handleParamDrag = ({ updateReorderedItem }) => {
const handleVarDrag = ({ updateReorderedItem }) => {
dispatch(
moveVar({
type: varType,
Expand Down Expand Up @@ -104,7 +104,7 @@ const VarsTable = ({ item, collection, vars, varType }) => {
{ name: '', accessor: '', width: '14%' }
]}
>
<ReorderTable updateReorderedItem={handleParamDrag}>
<ReorderTable updateReorderedItem={handleVarDrag}>
{vars && vars.length
? vars.map((_var) => {
return (
Expand Down

0 comments on commit 7ca06a1

Please sign in to comment.