datastake-daf 0.6.702 → 0.6.704

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.
@@ -9735,9 +9735,8 @@ const determineHasChildren = ({
9735
9735
 
9736
9736
  const sortByPosition = (items, getConfig) => {
9737
9737
  return items.sort((a, b) => {
9738
- var _getConfig, _getConfig2;
9739
- const positionA = ((_getConfig = getConfig(a)) === null || _getConfig === void 0 ? void 0 : _getConfig.position) || 0;
9740
- const positionB = ((_getConfig2 = getConfig(b)) === null || _getConfig2 === void 0 ? void 0 : _getConfig2.position) || 0;
9738
+ const positionA = getConfig(a)?.position || 0;
9739
+ const positionB = getConfig(b)?.position || 0;
9741
9740
  return positionA - positionB;
9742
9741
  });
9743
9742
  };
@@ -9754,7 +9753,7 @@ const resolveDynamicLabel = (labelConfig, item, defaultLabel) => {
9754
9753
  const parts = labelKey.split(' is ');
9755
9754
  if (parts.length === 2) {
9756
9755
  const [conditionKey, conditionValue] = parts;
9757
- if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
9756
+ if (item?.[conditionKey] === conditionValue) {
9758
9757
  return labelConfig[labelKey];
9759
9758
  }
9760
9759
  }