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:
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user