web ui: fix bug where 404 was still visible after going back and selecting a valid instance
@@ -13,7 +13,7 @@ import {
CREATE_INSTANCE_FAILURE,
GET_KEY_FAILURE, SET_KEY_FAILURE, CREATE_KEY_FAILURE,
DISMISS_ERROR,
- GET_KDB_FAILURE,
+ GET_KDB_FAILURE, GET_KDB_SUCCESS,
} from '../actions'
export default function errorReducer (state = false, action) {
@@ -21,6 +21,9 @@ export default function errorReducer (state = false, action) {
case GET_KDB_FAILURE:
return { ...action.error, instanceError: true }
+ case GET_KDB_SUCCESS:
+ return false
+
case INSTANCES_FAILURE:
case INSTANCE_UPDATE_FAILURE:
case INSTANCE_DELETE_FAILURE:
