From 3ff0c964dc05c0b393b6b7140cf59bffb8f70806 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Sat, 1 Aug 2020 16:14:50 +0300 Subject: [PATCH] - client: fix empty log error --- client/src/reducers/queryLogs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/reducers/queryLogs.js b/client/src/reducers/queryLogs.js index d1e24ac3..a4a3d180 100644 --- a/client/src/reducers/queryLogs.js +++ b/client/src/reducers/queryLogs.js @@ -42,7 +42,7 @@ const queryLogs = handleActions( const rowsStart = pageSize * page; const rowsEnd = rowsStart + pageSize; const logsSlice = logs.slice(rowsStart, rowsEnd); - const isFiltered = Object.keys(filter).some((key) => filter[key]); + const isFiltered = filter && Object.keys(filter).some((key) => filter[key]); return { ...state,