Skip to content

Commit

Permalink
fix(editor): remove import lodash/fp
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Jul 9, 2020
1 parent 7809da6 commit a105cff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-schema-editor/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState } from 'react'
import { Radio, Tabs } from 'antd'
import * as fp from 'lodash/fp'
import _ from 'lodash'
import { SchemaTree } from './components/SchemaTree'
import FieldEditor from './components/FieldEditor'
Expand Down Expand Up @@ -58,7 +57,7 @@ export const SchemaEditor: React.FC<{
const isRoot = selectedPath === 'root'

const selectedSchema =
selectedPath && (isRoot ? schema : fp.get(selectedPath, schema))
selectedPath && (isRoot ? schema : _.get(selectedPath, schema))

return (
<div className={`schema-editor ${className}`}>
Expand Down

0 comments on commit a105cff

Please sign in to comment.