Skip to content

Commit

Permalink
bug(autocomplete): fix undefined error in autocomplete component (#562)
Browse files Browse the repository at this point in the history
* bug(autocomplete): fix undefined error in autocomplete component

* fix lint error
  • Loading branch information
sjclark76 committed Jul 3, 2020
1 parent 8ff1e0f commit 6616b14
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export class MdAutoComplete {
@au.bindable
values: any = {};
valuesChanged() {
this.instance.updateData(this.values);
if (this.instance) {
this.instance.updateData(this.values);
}
}

instance: M.Autocomplete;
Expand Down

0 comments on commit 6616b14

Please sign in to comment.