@uigraph/sdk 1.1.39 → 1.1.40

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.cjs CHANGED
@@ -3995,7 +3995,7 @@ function getFieldValue(fieldData) {
3995
3995
  if (!Array.isArray(fieldData) || fieldData.length !== 1) return fieldData;
3996
3996
  const first = toRecord(fieldData[0]);
3997
3997
  if (!first) return fieldData;
3998
- if (!("value" in first)) return fieldData;
3998
+ if (!("value" in first)) return first;
3999
3999
  return first.value;
4000
4000
  }
4001
4001
  function getFieldByLabel(fields, label) {
package/dist/index.mjs CHANGED
@@ -3988,7 +3988,7 @@ function getFieldValue(fieldData) {
3988
3988
  if (!Array.isArray(fieldData) || fieldData.length !== 1) return fieldData;
3989
3989
  const first = toRecord(fieldData[0]);
3990
3990
  if (!first) return fieldData;
3991
- if (!("value" in first)) return fieldData;
3991
+ if (!("value" in first)) return first;
3992
3992
  return first.value;
3993
3993
  }
3994
3994
  function getFieldByLabel(fields, label) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uigraph/sdk",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "type": "module",
5
5
  "license": "BUSL-1.1",
6
6
  "repository": {