mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	fix(web): set events api limit to 25
This commit is contained in:
		
							parent
							
								
									0344d61b26
								
							
						
					
					
						commit
						3c60aeeef9
					
				@ -10,7 +10,7 @@ import { FetchStatus, useApiHost, useConfig, useEvents } from '../api';
 | 
				
			|||||||
import { Table, Thead, Tbody, Tfoot, Th, Tr, Td } from '../components/Table';
 | 
					import { Table, Thead, Tbody, Tfoot, Th, Tr, Td } from '../components/Table';
 | 
				
			||||||
import { useCallback, useEffect, useMemo, useReducer, useState } from 'preact/hooks';
 | 
					import { useCallback, useEffect, useMemo, useReducer, useState } from 'preact/hooks';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const API_LIMIT = 5;
 | 
					const API_LIMIT = 25;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const initialState = Object.freeze({ events: [], reachedEnd: false, searchStrings: {} });
 | 
					const initialState = Object.freeze({ events: [], reachedEnd: false, searchStrings: {} });
 | 
				
			||||||
const reducer = (state = initialState, action) => {
 | 
					const reducer = (state = initialState, action) => {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user