Skip to content

Commit b72c29f

Browse files
Deilanazhukaudev
authored andcommitted
fix(table): fix bug when source changes and it's type is Array (#327)
1 parent e629fea commit b72c29f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ng2-smart-table/ng2-smart-table.component.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export class Ng2SmartTableComponent implements OnChanges {
8080
if (changes['settings']) {
8181
this.grid.setSettings(this.prepareSettings());
8282
}
83-
if (changes['source']) {
83+
if (changes['source']) {
84+
this.source = this.prepareSource();
8485
this.grid.setSource(this.source);
8586
}
8687
} else {

0 commit comments

Comments
 (0)