@dataloop-ai/components 0.19.112 → 0.19.113
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
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
removeBrackets
|
|
12
12
|
} from '../../../../../hooks/use-suggestions'
|
|
13
13
|
import moment from 'moment'
|
|
14
|
-
import { cloneDeep } from 'lodash'
|
|
14
|
+
import { cloneDeep, get } from 'lodash'
|
|
15
15
|
|
|
16
16
|
export const isEndOfString = (
|
|
17
17
|
str: string,
|
|
@@ -190,7 +190,7 @@ export function setAliases(str: string, aliases: Alias[]) {
|
|
|
190
190
|
|
|
191
191
|
function valueAliases(schema: Data, field: string) {
|
|
192
192
|
let aliases: Data = {}
|
|
193
|
-
const type: any = schema
|
|
193
|
+
const type: any = get(schema, field)
|
|
194
194
|
if (Array.isArray(type)) {
|
|
195
195
|
for (const element of type) {
|
|
196
196
|
if (typeof element === 'object')
|