Skip to content

Commit

Permalink
fix: check
Browse files Browse the repository at this point in the history
  • Loading branch information
fPolic committed Oct 14, 2024
1 parent dc553c9 commit f8df1af
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ export const ReservationDetail = () => {
)

// TEMP: fetch directly since the fields are not populated with reservation call
const { inventory_item } = useInventoryItem(reservation.inventory_item?.id!)
const { inventory_item } = useInventoryItem(
reservation?.inventory_item?.id!,
undefined,
{ enabled: !!reservation?.inventory_item?.id! }
)

const { getWidgets } = useDashboardExtension()

Expand Down

0 comments on commit f8df1af

Please sign in to comment.