fix: kanban drag and drop (#508)
This commit is contained in:
parent
feb0e40559
commit
567afa6d39
1 changed files with 3 additions and 3 deletions
|
|
@ -201,7 +201,7 @@ export const IssuesView: React.FC<Props> = ({ type = "issue", openIssuesListModa
|
|||
if (!prevData) return prevData;
|
||||
|
||||
const sourceGroupArray = prevData[sourceGroup];
|
||||
const destinationGroupArray = prevData[destinationGroup];
|
||||
const destinationGroupArray = groupedByIssues[destinationGroup];
|
||||
|
||||
sourceGroupArray.splice(source.index, 1);
|
||||
destinationGroupArray.splice(destination.index, 0, draggedItem);
|
||||
|
|
@ -223,7 +223,7 @@ export const IssuesView: React.FC<Props> = ({ type = "issue", openIssuesListModa
|
|||
if (!prevData) return prevData;
|
||||
|
||||
const sourceGroupArray = prevData[sourceGroup];
|
||||
const destinationGroupArray = prevData[destinationGroup];
|
||||
const destinationGroupArray = groupedByIssues[destinationGroup];
|
||||
|
||||
sourceGroupArray.splice(source.index, 1);
|
||||
destinationGroupArray.splice(destination.index, 0, draggedItem);
|
||||
|
|
@ -243,7 +243,7 @@ export const IssuesView: React.FC<Props> = ({ type = "issue", openIssuesListModa
|
|||
if (!prevData) return prevData;
|
||||
|
||||
const sourceGroupArray = prevData[sourceGroup];
|
||||
const destinationGroupArray = prevData[destinationGroup];
|
||||
const destinationGroupArray = groupedByIssues[destinationGroup];
|
||||
|
||||
sourceGroupArray.splice(source.index, 1);
|
||||
destinationGroupArray.splice(destination.index, 0, draggedItem);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue