@dataloop-ai/components 0.17.96 → 0.17.97

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.17.96",
3
+ "version": "0.17.97",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -176,8 +176,10 @@ export default defineComponent({
176
176
  value: {
177
177
  min: 0,
178
178
  max:
179
- orderBy(props.data.datasets, (o) => o.data.length)[0].data
180
- .length - 1
179
+ props.data.datasets.length > 0
180
+ ? orderBy(props.data.datasets, (o) => o.data.length)[0]
181
+ .data.length - 1
182
+ : 1
181
183
  }
182
184
  })
183
185