fix: fixed deal dragging from another column to the current
This commit is contained in:
@ -45,9 +45,12 @@ const useDealsAndStatusesDnd = (): ReturnType => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const swipeSliderDuringDrag = (activeId: number, over: Over) => {
|
const swipeSliderDuringDrag = (activeId: number, over: Over) => {
|
||||||
const activeStatusLexorank = getStatusByDealId(
|
const activeStatus = getStatusByDealId(activeId);
|
||||||
Number(activeId)
|
const swiperActiveStatus =
|
||||||
)?.lexorank;
|
statuses[swiperRef.current?.swiper.activeIndex ?? 0];
|
||||||
|
if (swiperActiveStatus.id !== activeStatus?.id) return;
|
||||||
|
|
||||||
|
const activeStatusLexorank = activeStatus?.lexorank;
|
||||||
let overStatusLexorank: string | undefined;
|
let overStatusLexorank: string | undefined;
|
||||||
|
|
||||||
if (typeof over.id === "string" && isStatusId(over.id)) {
|
if (typeof over.id === "string" && isStatusId(over.id)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user