@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.
@@ -457,6 +457,7 @@
457
457
  _this.rowDef = {};
458
458
  _this.rowInstance = {};
459
459
  _this.fullFieldDefs = [];
460
+ _this.variableInflight = true;
460
461
  _this.applyProps = new Map();
461
462
  _this.redraw = _.debounce(_this._redraw, 150);
462
463
  _this.debouncedHandleLoading = _.debounce(_this.handleLoading, 350);
@@ -1135,6 +1136,10 @@
1135
1136
  set: function (newValue) {
1136
1137
  var _a;
1137
1138
  this.isDataLoading = false;
1139
+ // Fix for [WMS-24012]: hide no datafound msg when variableInflight is true and dataset is empty
1140
+ if (this.variableInflight && _.isEmpty(newValue)) {
1141
+ return;
1142
+ }
1138
1143
  this.variableInflight = false;
1139
1144
  if (this.gridOptions.isNavTypeScrollOrOndemand()) {
1140
1145
  // update the _gridData field with the next set of items and modify the current page
@@ -1605,6 +1610,10 @@
1605
1610
  };
1606
1611
  TableComponent.prototype.setGridData = function (serverData) {
1607
1612
  var data = this.filternullrecords ? this.removeEmptyRecords(serverData) : serverData;
1613
+ // fix for [WMS-24012] set variableinflight flag to false for static variables
1614
+ if (_.get(this.datasource, 'category') === 'wm.Variable') {
1615
+ this.variableInflight = false;
1616
+ }
1608
1617
  if (!this.variableInflight) {
1609
1618
  if (data && data.length === 0) {
1610
1619
  this.callDataGridMethod('setStatus', 'nodata', this.nodatamessage);