From 7a516e4022932cc489eae3ae24b5c3439affe0b5 Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Thu, 17 Oct 2024 01:12:19 +0300 Subject: [PATCH] fix(room-booking): refresh window to update bookings list --- src/components/room-booking/BookModal.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/room-booking/BookModal.tsx b/src/components/room-booking/BookModal.tsx index 35c7c8a..8c9a681 100644 --- a/src/components/room-booking/BookModal.tsx +++ b/src/components/room-booking/BookModal.tsx @@ -116,8 +116,10 @@ export function BookModal({ { onSuccess: () => { setTitle(""); - onOpenChange(false); reset(); + // Refresh window to update caches in Vue + window.location.reload(); + onOpenChange(false); }, }, );