Skip to content

Commit

Permalink
fix bug in checkApply (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
klassare authored and Dee297 committed Jan 24, 2019
1 parent 8336a49 commit e2a244e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/services/operation.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export class OperationService {
}
checkApplied(applied: any) {
for (let i = 0; i < applied[0].contents.length; i++) {
if (applied[0].contents[i].metadata.operation_result.status === 'failed') {
if (applied[0].contents[i].metadata.operation_result.status !== 'applied') {
console.log('throw error ->');
throw new Error(applied[0].contents[i].metadata.operation_result.errors[0].id); // prevent failed operations
}
Expand Down

0 comments on commit e2a244e

Please sign in to comment.