Remove unnecessary effect dependency

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-01-21 22:11:46 +01:00
parent 0b22795721
commit a1fab0bb73

View file

@ -57,7 +57,7 @@ export const GraphvizFrame: React.FC<CodeProps> = ({ code }) => {
.catch((error: Error) => {
log.error('Error while loading graphviz', error)
})
}, [code, error, basePath, showError])
}, [code, basePath, showError])
return (
<Fragment>