mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: kanban drag and drop (#508)
This commit is contained in:
parent
feb0e40559
commit
567afa6d39
@ -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…
Reference in New Issue
Block a user