From 9f75146eaba9d9a3ce085c884d7f18a2c628dc50 Mon Sep 17 00:00:00 2001 From: Ildar Kamalov Date: Tue, 28 May 2019 15:22:48 +0300 Subject: [PATCH] * client: check for empty versions response --- client/src/reducers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/reducers/index.js b/client/src/reducers/index.js index 58b16e94..09c93a99 100644 --- a/client/src/reducers/index.js +++ b/client/src/reducers/index.js @@ -122,7 +122,7 @@ const dashboard = handleActions({ [actions.getVersionSuccess]: (state, { payload }) => { const currentVersion = state.dnsVersion === 'undefined' ? 0 : state.dnsVersion; - if (versionCompare(currentVersion, payload.version) === -1) { + if (payload && versionCompare(currentVersion, payload.version) === -1) { const { version, announcement_url: announcementUrl,