* client: check for empty versions response

This commit is contained in:
Ildar Kamalov 2019-05-28 15:22:48 +03:00
parent 6ab8aa4da1
commit 9f75146eab
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ const dashboard = handleActions({
[actions.getVersionSuccess]: (state, { payload }) => { [actions.getVersionSuccess]: (state, { payload }) => {
const currentVersion = state.dnsVersion === 'undefined' ? 0 : state.dnsVersion; const currentVersion = state.dnsVersion === 'undefined' ? 0 : state.dnsVersion;
if (versionCompare(currentVersion, payload.version) === -1) { if (payload && versionCompare(currentVersion, payload.version) === -1) {
const { const {
version, version,
announcement_url: announcementUrl, announcement_url: announcementUrl,