mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 17:56:30 -05:00
Use right clear error
Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
091b225672
commit
192f66d169
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ export const VegaChart: React.FC<VegaChartProps> = ({ code }) => {
|
||||||
SVG_ACTION: t('renderer.vega-lite.svg')
|
SVG_ACTION: t('renderer.vega-lite.svg')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => showError(''))
|
.then(() => setError(undefined))
|
||||||
.catch(err => showError(err))
|
.catch(err => showError(err))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
showError(t('renderer.vega-lite.errorJson'))
|
showError(t('renderer.vega-lite.errorJson'))
|
||||||
|
|
Loading…
Reference in a new issue