mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 18:18:53 +08:00
check data format #109
This commit is contained in:
@@ -74,6 +74,9 @@ export default {
|
||||
|
||||
if (dataFormat === 'sqlite') {
|
||||
await this.getSqliteDb(dataUrl)
|
||||
} else {
|
||||
this.dataMsg.message = 'Unknown data format'
|
||||
this.dataMsg.type = 'error'
|
||||
}
|
||||
|
||||
// Loading indicator is not needed anymore
|
||||
|
||||
@@ -36,7 +36,7 @@ export default {
|
||||
},
|
||||
async beforeCreate () {
|
||||
const schema = this.$store.state.db.schema
|
||||
if (!schema || schema.length === 0) {
|
||||
if ((!schema || schema.length === 0) && this.$store.state.tabs.length === 0) {
|
||||
const stmt = [
|
||||
'/*',
|
||||
' * Your database is empty. In order to start building charts',
|
||||
|
||||
Reference in New Issue
Block a user