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 activeStatusLexorank = getStatusByDealId(
|
||||
Number(activeId)
|
||||
)?.lexorank;
|
||||
const activeStatus = getStatusByDealId(activeId);
|
||||
const swiperActiveStatus =
|
||||
statuses[swiperRef.current?.swiper.activeIndex ?? 0];
|
||||
if (swiperActiveStatus.id !== activeStatus?.id) return;
|
||||
|
||||
const activeStatusLexorank = activeStatus?.lexorank;
|
||||
let overStatusLexorank: string | undefined;
|
||||
|
||||
if (typeof over.id === "string" && isStatusId(over.id)) {
|
||||
|
||||
Reference in New Issue
Block a user