| @@ -69,9 +69,9 @@ | ||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | API.post(url, {id: migrationRunModal.id}) |
| 72 | 72 | .then((response) => { |
| 73 | - if (response.data.status) { | |
| 73 | + if (response.status) { | |
| 74 | 74 | closeMigrationRunModal(); |
| 75 | 75 | } else { |
| 76 | 76 | setMigrationRunModal((previousState) => { |
| 77 | 77 | return { |
| @@ -77,9 +77,9 @@ | ||
| 77 | 77 | return { |
| 78 | 78 | ...previousState, |
| 79 | 79 | type: 'error', |
| 80 | 80 | error: true, |
| 81 | - errorMessage: response.data.message, | |
| 81 | + errorMessage: response.message, | |
| 82 | 82 | }; |
| 83 | 83 | }); |
| 84 | 84 | } |
| 85 | 85 | // Invalidate the cache |