fix(code/frontend): fix error when import existing repo (#43425) (#43429)

This commit is contained in:
WangQianliang 2019-08-17 02:30:02 +08:00 committed by Mengwei Ding
parent 0115a3ca12
commit fd3a70d80d

View file

@ -107,7 +107,7 @@ export const repositoryManagement = handleActions<
[String(importRepoFailed)]: (state, action: Action<any>) =>
produce<RepositoryManagementState>(state, draft => {
if (action.payload) {
if (action.payload.res.status === 304) {
if (action.payload.response && action.payload.response.status === 304) {
draft.toastMessage = i18n.translate(
'xpack.code.repositoryManagement.repoImportedMessage',
{