@yuuvis/client-framework 2.1.5 → 2.1.7

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.
@@ -246,13 +246,10 @@ class DataGridComponent {
246
246
  switch (element.type) {
247
247
  case 'string':
248
248
  return value;
249
- break;
250
249
  case 'decimal':
251
250
  return this.#decimalPipe.transform(value, '1.2-4', this.translate.currentLang);
252
- break;
253
251
  default:
254
252
  return value;
255
- break;
256
253
  }
257
254
  }
258
255
  #updateTable(elements, data = []) {
@@ -261,7 +258,7 @@ class DataGridComponent {
261
258
  acc.push({
262
259
  columnDef: el.label,
263
260
  header: el.label,
264
- cell: (element) => (element.isAddRow ? '' : this.#cellValue(el, element[el.label]))
261
+ cell: (element) => (element.isAddRow ? '' : this.#cellValue(el, element[el.name]))
265
262
  });
266
263
  return acc;
267
264
  }, []));