mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-30 09:58:12 +00:00
Merge pull request #783 from Tria-plc/freight_feature/usermanagement
fix
This commit is contained in:
@@ -29,8 +29,10 @@ export function DayAvailabilityHint({
|
|||||||
tradeDirection,
|
tradeDirection,
|
||||||
}: DayAvailabilityHintProps) {
|
}: DayAvailabilityHintProps) {
|
||||||
const { data, isLoading, isError } = useQuery({
|
const { data, isLoading, isError } = useQuery({
|
||||||
...api.bookings.getDayAvailability.queryOptions({ bookingId, date }),
|
...api.bookings.getDayAvailability.queryOptions({
|
||||||
enabled: Boolean(bookingId && date),
|
input: { bookingId, date },
|
||||||
|
enabled: Boolean(bookingId && date),
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!date) return null;
|
if (!date) return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user