fix blank file

pull/1575/head
ioedeveloper 3 years ago
parent d0828ab249
commit 4745462b73
  1. 2
      libs/remix-ui/workspace/src/lib/components/file-render.tsx

@ -27,7 +27,7 @@ export const FileRender = (props: RenderFileProps) => {
const [icon, setIcon] = useState<string>('')
useEffect(() => {
if (props.file && props.file.path && props.file.name && props.file.type) {
if (props.file && props.file.path && props.file.type) {
setFile(props.file)
setIcon(getPathIcon(props.file.path))
}

Loading…
Cancel
Save