Skip to content

Commit

Permalink
Fix not being able to drag 0 (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigridge authored Nov 24, 2023
1 parent 3bd8ca2 commit abffadf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/components/ConsultantRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ function DetailedBookingCell({

function updateHours() {
setIsDisabledHotkeys(false);
(oldHours != hours || (hourDragValue && oldHours != hourDragValue)) &&
(oldHours != hours ||
(hourDragValue != undefined && oldHours != hourDragValue)) &&
setDetailedBookingHours(
hourDragValue ?? hours,
detailedBooking.bookingDetails.type,
Expand Down

0 comments on commit abffadf

Please sign in to comment.