This commit is contained in:
Bernt Christian Egeland 2021-08-22 21:57:53 +02:00
parent d3e2bebfab
commit f1ca73fc43
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,7 @@ export default function Event({ eventId, close, scrollIntoView }) {
useEffect(() => {
// Call Events.js scroll when this event has been mounted.
scrollIntoView(eventId);
}, [scrollIntoView]);
}, [scrollIntoView, eventId]);
const handleClickDelete = () => {
setShowDialog(true);

View File

@ -80,7 +80,6 @@ export default function Events({ path: pathname, limit = API_LIMIT } = {}) {
}
if (data && Array.isArray(data) && data.length + deleted < limit) {
console.log('reached end');
dispatch({ type: 'REACHED_END', meta: { searchString } });
}
}, [data, limit, searchString, searchStrings, deleted]);