@wavemaker/app-ng-runtime 11.3.4-rc.5290 → 11.3.4-rc.5292

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.
@@ -148,6 +148,7 @@ class TableComponent extends StylableComponent {
148
148
  this.rowDef = {};
149
149
  this.rowInstance = {};
150
150
  this.fullFieldDefs = [];
151
+ this.variableInflight = true;
151
152
  this.applyProps = new Map();
152
153
  this.redraw = _.debounce(this._redraw, 150);
153
154
  this.debouncedHandleLoading = _.debounce(this.handleLoading, 350);
@@ -813,6 +814,10 @@ class TableComponent extends StylableComponent {
813
814
  }
814
815
  set gridData(newValue) {
815
816
  this.isDataLoading = false;
817
+ // Fix for [WMS-24012]: hide no datafound msg when variableInflight is true and dataset is empty
818
+ if (this.variableInflight && _.isEmpty(newValue)) {
819
+ return;
820
+ }
816
821
  this.variableInflight = false;
817
822
  if (this.gridOptions.isNavTypeScrollOrOndemand()) {
818
823
  // update the _gridData field with the next set of items and modify the current page
@@ -1272,6 +1277,10 @@ class TableComponent extends StylableComponent {
1272
1277
  }
1273
1278
  setGridData(serverData) {
1274
1279
  const data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;
1280
+ // fix for [WMS-24012] set variableinflight flag to false for static variables
1281
+ if (_.get(this.datasource, 'category') === 'wm.Variable') {
1282
+ this.variableInflight = false;
1283
+ }
1275
1284
  if (!this.variableInflight) {
1276
1285
  if (data && data.length === 0) {
1277
1286
  this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);