Skip to content

Commit

Permalink
Fix some remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
VladLasitsa committed Apr 8, 2021
1 parent e2fce06 commit e983cfd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/kibana_utils/common/errors/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class SavedFieldNotFound extends KbnError {
}

/**
* A saved field type doesn't compatible with aggregation
* A saved field type isn't compatible with aggregation
*/
export class SavedFieldTypeInvalidForAgg extends KbnError {
constructor(message: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ export class VisualizeEmbeddable
this.subscriptions.push(
this.getUpdated$().subscribe((value) => {
const isDirty = this.handleChanges();
// we shouldn't try to update handler if we have error
// because it can lead to show error twice
if (isDirty && this.handler && !get(value, 'error.stack')) {

if (isDirty && this.handler) {
this.updateHandler();
}
})
Expand Down

0 comments on commit e983cfd

Please sign in to comment.