We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7809da6 commit a105cffCopy full SHA for a105cff
packages/react-schema-editor/src/index.tsx
@@ -1,6 +1,5 @@
1
import React, { useState } from 'react'
2
import { Radio, Tabs } from 'antd'
3
-import * as fp from 'lodash/fp'
4
import _ from 'lodash'
5
import { SchemaTree } from './components/SchemaTree'
6
import FieldEditor from './components/FieldEditor'
@@ -58,7 +57,7 @@ export const SchemaEditor: React.FC<{
58
57
const isRoot = selectedPath === 'root'
59
60
const selectedSchema =
61
- selectedPath && (isRoot ? schema : fp.get(selectedPath, schema))
+ selectedPath && (isRoot ? schema : _.get(selectedPath, schema))
62
63
return (
64
<div className={`schema-editor ${className}`}>
0 commit comments