Skip to content

Commit

Permalink
fix(code/frontend): fix error when import existing repo (elastic#43425)…
Browse files Browse the repository at this point in the history
  • Loading branch information
WangQianliang authored and mw-ding committed Aug 16, 2019
1 parent 0115a3c commit fd3a70d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
{
Expand Down

0 comments on commit fd3a70d

Please sign in to comment.