1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

fix undefined in tests and chart metrics

This commit is contained in:
lana-k
2022-07-30 16:42:30 +02:00
parent 3c456ef135
commit 6320f818cb

View File

@@ -66,7 +66,8 @@ export default {
notifyOnLogging: 1
})
this.$watch(
() => this.state.data.map(trace => `${trace.type}-${trace.mode}`)
() => this.state && this.state.data && this.state.data
.map(trace => `${trace.type}${trace.mode ? '-' + trace.mode : ''}`)
.join(','),
(value) => {
events.send('viz_plotly.render', null, {