From 2efe23d04e1712fe0b2d1e9762e8cc793f978c83 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 27 Jun 2024 19:42:09 +0200 Subject: [PATCH] remove timeout for refetch rooms --- frontend/src/stores/roomsStore.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/stores/roomsStore.ts b/frontend/src/stores/roomsStore.ts index d6e753b9be..a32a9fd4f7 100644 --- a/frontend/src/stores/roomsStore.ts +++ b/frontend/src/stores/roomsStore.ts @@ -48,8 +48,7 @@ export const useRoomsStore = defineStore('rooms', () => { setTimeout(refetchRooms, 60 * 1000) } - // eslint-disable-next-line @typescript-eslint/no-misused-promises - void setTimeout(refetchRooms, 60 * 1000) + void refetchRooms() const rooms = ref([])