Skip to content

Commit

Permalink
#270 fix externalQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
xaksis committed May 8, 2018
1 parent c090d0b commit c262d78
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,13 @@ export default {
}
// lets format the resultant data
const type = column.typeDef;
let type = column.typeDef;
// this will only happen if we try to collect formatted
// before types have been initialized. for example: on
// load when external query is specified.
if (!type) {
type = this.dataTypes[column.type] || defaultType;
}
return type.format(value, column);
},
Expand Down Expand Up @@ -1090,7 +1096,7 @@ export default {
this.searchTrigger = trigger;
}
if (typeof externalQuery === 'string' && externalQuery !== '') {
if (typeof externalQuery === 'string') {
this.externalSearchQuery = externalQuery;
}
Expand Down

0 comments on commit c262d78

Please sign in to comment.