Fixed vnTable trying to apply filter an it's not defined.

This commit is contained in:
Joan Sanchez 2018-07-03 14:57:08 +02:00
parent 15de049317
commit 64eef322e9
2 changed files with 6 additions and 1 deletions

View File

@ -25,7 +25,7 @@ export default class Table {
}
$onChanges() {
if (this.model)
if (this.model && this.model.filter)
this.applyFilter();
}

View File

@ -13,6 +13,7 @@ vn-table {
display: table-header-group;
vn-th[field] {
position: relative;
cursor: pointer
}
@ -84,6 +85,10 @@ vn-table {
&[number]{
text-align: right;
}
vn-icon.bright, i.bright {
color: #f7931e;
}
}
}
}