* client: check for empty versions response
This commit is contained in:
parent
6ab8aa4da1
commit
9f75146eab
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue