From 09acea38253da4c55110be24b28c3de05abdd2de Mon Sep 17 00:00:00 2001 From: Kuchuk Andrey Date: Mon, 4 Dec 2023 22:04:59 +0400 Subject: [PATCH] [#83] fix lint error pipeline --- plugins/events.client.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/events.client.ts b/plugins/events.client.ts index 043911d9..819dec89 100644 --- a/plugins/events.client.ts +++ b/plugins/events.client.ts @@ -92,10 +92,10 @@ export default defineNuxtPlugin(() => { } const getAll = () => { - getEventsAll().then((events: ServerEvent[]) => { - if (events.length) { - eventsStore.initialize(events); - cachedIdsStore.syncWithActive(events.map(({ uuid }) => uuid)); + getEventsAll().then((eventsList: ServerEvent[]) => { + if (eventsList.length) { + eventsStore.initialize(eventsList); + cachedIdsStore.syncWithActive(eventsList.map(({ uuid }) => uuid)); } else { // NOTE: clear cached events hardly eventsStore.removeAll();