- client: fix loading of additional search results

This commit is contained in:
Ildar Kamalov 2020-01-13 17:06:00 +03:00
parent ba04b38a5f
commit 86df748209
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ const checkFilteredLogs = async (data, filter, dispatch, total) => {
try { try {
const additionalLogs = await getLogsWithParams({ older_than: oldest, filter }); const additionalLogs = await getLogsWithParams({ older_than: oldest, filter });
if (additionalLogs.logs.length > 0) { if (additionalLogs.oldest.length > 0) {
return await checkFilteredLogs(additionalLogs, filter, dispatch, { return await checkFilteredLogs(additionalLogs, filter, dispatch, {
logs: [...totalData.logs, ...additionalLogs.logs], logs: [...totalData.logs, ...additionalLogs.logs],
oldest: additionalLogs.oldest, oldest: additionalLogs.oldest,