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

Pre-defined query file should be empty #24

This commit is contained in:
lana-k
2020-12-16 22:13:26 +01:00
parent 00d671fac0
commit 5dbffe0c56
2 changed files with 1 additions and 48 deletions

View File

@@ -29,7 +29,7 @@ export default {
xhr.onload = () => {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
resolve(JSON.parse(xhr.responseText))
resolve(JSON.parse(xhr.responseText || '[]'))
} else {
reject(xhr.statusText)
}