@dataloop-ai/components 0.17.119 → 0.17.120
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
|
@@ -203,7 +203,7 @@ export const useSuggestions = (
|
|
|
203
203
|
localSuggestions = getOperators(ops)
|
|
204
204
|
|
|
205
205
|
if (!operator) {
|
|
206
|
-
const dotSeparated = matchedField.split('.')
|
|
206
|
+
const dotSeparated = matchedField.split('.').filter((el) => el)
|
|
207
207
|
let fieldOf = schema
|
|
208
208
|
for (const key of dotSeparated) {
|
|
209
209
|
fieldOf = fieldOf[key] as Schema
|
|
@@ -457,7 +457,7 @@ const getDataType = (
|
|
|
457
457
|
): string | string[] | null => {
|
|
458
458
|
const aliasedKey = getAliasObjByAlias(aliases, key)?.key ?? key
|
|
459
459
|
|
|
460
|
-
const nestedKey = aliasedKey.split('.')
|
|
460
|
+
const nestedKey = aliasedKey.split('.').filter((el) => el)
|
|
461
461
|
|
|
462
462
|
let value = schema[nestedKey[0]] as Schema
|
|
463
463
|
if (!value) return null
|