Merge: - client: add initial flag for getLogs

* commit 'dd37c9651a0a5914a5e8c9be4c2f6ad23faf1a13':
  - client: add initial flag for getLogs
This commit is contained in:
Ildar Kamalov
2020-01-30 18:59:28 +03:00
2 changed files with 6 additions and 5 deletions

View File

@@ -56,9 +56,9 @@ const queryLogs = handleActions(
[actions.getLogsFailure]: state => ({ ...state, processingGetLogs: false }),
[actions.getLogsSuccess]: (state, { payload }) => {
const {
logs, oldest, older_than, page, pageSize,
logs, oldest, older_than, page, pageSize, initial,
} = payload;
let logsWithOffset = state.allLogs.length > 0 ? state.allLogs : logs;
let logsWithOffset = state.allLogs.length > 0 && !initial ? state.allLogs : logs;
let allLogs = logs;
if (older_than) {