material-react-table 2.13.2 → 3.0.0-alpha.0

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/dist/index.js CHANGED
@@ -327,7 +327,7 @@ const createRow = (table, originalRow, rowIndex = -1, depth = 0, subRows, parent
327
327
 
328
328
  const parseFromValuesOrFunc = (fn, arg) => (fn instanceof Function ? fn(arg) : fn);
329
329
  const getValueAndLabel = (option) => {
330
- var _a, _b, _c;
330
+ var _a, _b;
331
331
  let label = '';
332
332
  let value = '';
333
333
  if (option) {
@@ -336,8 +336,8 @@ const getValueAndLabel = (option) => {
336
336
  value = option;
337
337
  }
338
338
  else {
339
- label = (_b = (_a = option.label) !== null && _a !== void 0 ? _a : option.text) !== null && _b !== void 0 ? _b : option.value;
340
- value = (_c = option.value) !== null && _c !== void 0 ? _c : label;
339
+ label = (_a = option.label) !== null && _a !== void 0 ? _a : option.value;
340
+ value = (_b = option.value) !== null && _b !== void 0 ? _b : label;
341
341
  }
342
342
  }
343
343
  return { label, value };