fix: fixed deal dragging from another column to the current

This commit is contained in:
2025-08-17 18:33:05 +04:00
parent 85ed974f5e
commit e5e87f775d

View File

@ -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)) {