Commit 4745462b authored by ioedeveloper's avatar ioedeveloper

fix blank file

parent d0828ab2
......@@ -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))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment