@dataloop-ai/components 0.19.81 → 0.19.82

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.81",
3
+ "version": "0.19.82",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -42,7 +42,11 @@ export const getLabelOfSelectedOption = (
42
42
  options: DlSelectOptionType[] | string[]
43
43
  ): string | undefined => {
44
44
  for (const option of options) {
45
- if (typeof option === 'string' && typeof selected === 'string') {
45
+ if (
46
+ typeof option === 'string' &&
47
+ typeof selected === 'string' &&
48
+ option === selected
49
+ ) {
46
50
  return option
47
51
  } else if (
48
52
  typeof option === 'object' &&