Skip to content

Commit a105cff

Browse files
committed
fix(editor): remove import lodash/fp
1 parent 7809da6 commit a105cff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/react-schema-editor/src/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React, { useState } from 'react'
22
import { Radio, Tabs } from 'antd'
3-
import * as fp from 'lodash/fp'
43
import _ from 'lodash'
54
import { SchemaTree } from './components/SchemaTree'
65
import FieldEditor from './components/FieldEditor'
@@ -58,7 +57,7 @@ export const SchemaEditor: React.FC<{
5857
const isRoot = selectedPath === 'root'
5958

6059
const selectedSchema =
61-
selectedPath && (isRoot ? schema : fp.get(selectedPath, schema))
60+
selectedPath && (isRoot ? schema : _.get(selectedPath, schema))
6261

6362
return (
6463
<div className={`schema-editor ${className}`}>

0 commit comments

Comments
 (0)