@sulzanoks/vue-datatable 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sulzanoks/vue-datatable",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "main": "./dist/datatable-card.umd.js",
6
6
  "module": "./dist/datatable-card.es.js",
@@ -327,6 +327,12 @@
327
327
  this.columnSettings.draw++;
328
328
  this.clearSelectedRows();
329
329
  axios.get(this.url, {params: this.columnSettings}).then(response => {
330
+ if (response.data.error) {
331
+ this.cardError = response.data.error;
332
+ return;
333
+ }
334
+
335
+ this.cardError = null;
330
336
  this.rows = response.data.data;
331
337
  this.recordsTotal = response.data.recordsTotal;
332
338
  this.recordsFiltered = response.data.recordsFiltered;