Skip to content

Commit

Permalink
fix(table): fix bug when source changes and it's type is Array (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deilan authored and lexzhukov committed Apr 27, 2017
1 parent e629fea commit b72c29f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ng2-smart-table/ng2-smart-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ export class Ng2SmartTableComponent implements OnChanges {
if (changes['settings']) {
this.grid.setSettings(this.prepareSettings());
}
if (changes['source']) {
if (changes['source']) {
this.source = this.prepareSource();
this.grid.setSource(this.source);
}
} else {
Expand Down

0 comments on commit b72c29f

Please sign in to comment.