1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00

fix JS error during running queries #80

This commit is contained in:
lana-k
2021-08-18 21:50:42 +02:00
parent 679a785d70
commit cabc4f8acd
2 changed files with 20 additions and 2 deletions

View File

@@ -66,7 +66,9 @@ export default {
dataSources () {
// we need to update state.data in order to update the graph
// https://github.com/plotly/react-chart-editor/issues/948
dereference(this.state.data, this.dataSources)
if (this.dataSources) {
dereference(this.state.data, this.dataSources)
}
}
},
methods: {