@dataloop-ai/components 0.19.93 → 0.19.95

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.93",
3
+ "version": "0.19.95",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -10,6 +10,7 @@ export function getCellValue(
10
10
  }
11
11
  const val =
12
12
  typeof col?.field === 'function' ? col.field(row) : getField(col.field)
13
+
13
14
  return col?.format !== void 0 ? col.format(val, row) : val
14
15
  }
15
16
 
@@ -22,7 +23,7 @@ function getNestedProperty(obj: Record<string, any>, propertyPath: string) {
22
23
  let value = obj
23
24
 
24
25
  for (const prop of pathArray) {
25
- if (value && value.hasOwnProperty(prop)) {
26
+ if (value && value[prop]) {
26
27
  value = value[prop]
27
28
  } else {
28
29
  return undefined
@@ -91,7 +91,7 @@ export default defineComponent({
91
91
  height: 100%;
92
92
  align-items: center;
93
93
  justify-content: flex-end;
94
- padding-right: 10px;
94
+ padding-right: 20px;
95
95
  }
96
96
  }
97
97
  </style>