mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
Update dependency vega to v5.20.2 (#1152)
* Update dependency vega to v5.20.2 Signed-off-by: Renovate Bot <bot@renovateapp.com> * Add type to error object Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Add renovate group for vega Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Update vega code Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> * Regenerate yarn.lock Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
ad10bfa39a
commit
ab9f89f39f
5 changed files with 27 additions and 19 deletions
|
@ -52,8 +52,8 @@ export const VegaChart: React.FC<VegaChartProps> = ({ code }) => {
|
|||
}
|
||||
})
|
||||
.then(() => setError(undefined))
|
||||
.catch(err => showError(err))
|
||||
} catch (err) {
|
||||
.catch((error: Error) => showError(error.message))
|
||||
} catch (error) {
|
||||
showError(t('renderer.vega-lite.errorJson'))
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue