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