Skip to content

Commit

Permalink
remove console error when fetching data
Browse files Browse the repository at this point in the history
  • Loading branch information
dmstern committed Aug 11, 2018
1 parent d2b2c8f commit 407dbec
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/components/PackageList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,10 @@ export default class Packages extends Vue {
constructor() {
super();
this.packages = {data: []};
this.loadPackages();
EventBus.$on(Events.FILTER_SEARCH, (filteredSearchItems) => {
this.packages.data = filteredSearchItems.filter((searchItem) => searchItem instanceof Package);
});
}
private async loadPackages() {
this.packages.data = await PackagesService.Instance.getPackages();
}
}
</script>

0 comments on commit 407dbec

Please sign in to comment.