@cdmx/wappler_ag_grid 1.7.1 → 1.7.2

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.
Files changed (2) hide show
  1. package/dmx-ag-grid.js +4 -4
  2. package/package.json +1 -1
package/dmx-ag-grid.js CHANGED
@@ -390,6 +390,10 @@ dmx.Component('ag-grid', {
390
390
  const cnames = this.props.cnames
391
391
  const cwidths = this.props.cwidths
392
392
  const ctypes = this.props.ctypes
393
+ if (!this.$node || !rowData || rowData.length === 0) {
394
+ console.error('No row data provided.');
395
+ return;
396
+ }
393
397
  let gridInstance = this.get('gridInstance') ? this.get('gridInstance') : null;
394
398
  let pagination_page_size = gridInstance ? gridInstance.paginationGetPageSize() : this.props.pagination_page_size
395
399
  const enableRowClickEvent = this.props.row_click_event && !this.props.enable_actions && !this.props.row_checkbox_event;
@@ -404,10 +408,6 @@ dmx.Component('ag-grid', {
404
408
  const gridThemeClass = options.dark_mode ? `${options.grid_theme}-dark` : options.grid_theme;
405
409
  this.$node.innerHTML = `<div id=${options.id}-grid class="${gridThemeClass}"></div>`;
406
410
  let idFieldPresent = false;
407
- if (!rowData || rowData.length === 0) {
408
- console.error('No row data provided.');
409
- return;
410
- }
411
411
  window.cellClickEvent = (columnName, value, idValue) => {
412
412
  this.set('fields', {"field": columnName, "data": value});
413
413
  this.set('id', idValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",