From da967e8c430c1eb4a5903813a409c3624bae8b43 Mon Sep 17 00:00:00 2001 From: "riho.takagi" Date: Fri, 3 Nov 2023 17:39:38 -0400 Subject: [PATCH] hide past event --- .../src/client/admin-page/components/Bookings.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/media_commons_booking_app/src/client/admin-page/components/Bookings.tsx b/media_commons_booking_app/src/client/admin-page/components/Bookings.tsx index aff1c912..9505d0ca 100644 --- a/media_commons_booking_app/src/client/admin-page/components/Bookings.tsx +++ b/media_commons_booking_app/src/client/admin-page/components/Bookings.tsx @@ -56,10 +56,7 @@ export const Bookings = () => { }, [bookings]); useEffect(() => { - console.log( - bookingStatuses, - 'bookingStatusesbookingStatusesbookingStatusesbookingStatuses' - ); + console.log(bookingStatuses, 'bookingStatus'); const mappings = bookingStatuses .map((bookingStatus, index) => { console.log(bookingStatus, 'bookingStatus'); @@ -74,7 +71,7 @@ export const Bookings = () => { }, [bookingStatuses]); const fetchBookings = async () => { - serverFunctions.fetchRows(BOOKING_SHEET_NAME).then((rows) => { + serverFunctions.getFutureDates(BOOKING_SHEET_NAME).then((rows) => { console.log('booking rows', rows); setBookings(rows); });