adding eslint-plugin-react-hooks plugin and fixing 1 error
This commit is contained in:
parent
93d1cfa5ec
commit
72c7b2b9ce
4 changed files with 13 additions and 5 deletions
|
@ -11,9 +11,8 @@ const EditorHelper = <T extends ElementType>({
|
|||
component: Component,
|
||||
...props
|
||||
}: EditorHelperProps<T>) => {
|
||||
const helpersRoot = useEditorStore((state) => state.helpersRoot)
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
const helpersRoot = useEditorStore((state) => state.helpersRoot)
|
||||
|
||||
return <>{createPortal(<Component {...props} />, helpersRoot)}</>
|
||||
} else {
|
||||
return null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue