From a0c50997ca8cf34817aedafec8475fedec249654 Mon Sep 17 00:00:00 2001 From: Oleg Klimenko Date: Sat, 21 Dec 2024 23:21:07 +0300 Subject: [PATCH] filter out online events from assistant --- Tyr/app/store/middlewares/apiClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tyr/app/store/middlewares/apiClient.ts b/Tyr/app/store/middlewares/apiClient.ts index 451f9e817..eaf2b5e1f 100644 --- a/Tyr/app/store/middlewares/apiClient.ts +++ b/Tyr/app/store/middlewares/apiClient.ts @@ -112,7 +112,7 @@ export const apiClient = .then((events) => mw.dispatch({ type: EVENTS_GET_LIST_SUCCESS, - payload: events, + payload: events.filter((e) => !e.isOnline), }) ) .catch((err) => mw.dispatch({ type: EVENTS_GET_LIST_FAIL, payload: err }));