Skip to content

Commit

Permalink
[#83] fix lint error pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreezag committed Dec 4, 2023
1 parent 56b1c63 commit 09acea3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/events.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ export default defineNuxtPlugin(() => {
}

const getAll = () => {
getEventsAll().then((events: ServerEvent<unknown>[]) => {
if (events.length) {
eventsStore.initialize(events);
cachedIdsStore.syncWithActive(events.map(({ uuid }) => uuid));
getEventsAll().then((eventsList: ServerEvent<unknown>[]) => {
if (eventsList.length) {
eventsStore.initialize(eventsList);
cachedIdsStore.syncWithActive(eventsList.map(({ uuid }) => uuid));
} else {
// NOTE: clear cached events hardly
eventsStore.removeAll();
Expand Down

0 comments on commit 09acea3

Please sign in to comment.