mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-22 16:06:19 -05:00
Process even 1 event.
This commit is contained in:
parent
ed4bf8fe36
commit
b019d7030b
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ export function useEventsInterval() {
|
|||
useRecurringTimeout(fetchEvents, 1000 * 5);
|
||||
|
||||
useEffect(() => {
|
||||
if (events && events.length > 1) {
|
||||
if (events && events.length >= 1) {
|
||||
handleEvents(events);
|
||||
}
|
||||
}, [JSON.stringify(events)]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue