Fix typescript error

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2021-08-27 20:15:43 +02:00
parent 8670b40a46
commit 2adc1991bc

View file

@ -50,7 +50,7 @@ export const GraphvizFrame: React.FC<GraphvizFrameProps> = ({ code }) => {
.onerror(showError)
.renderDot(code)
} catch (error) {
showError(error)
showError(error as string)
}
})
.catch(() => {