Skip to content
Snippets Groups Projects
Verified Commit 903090ef authored by Kirill Stytsenko's avatar Kirill Stytsenko
Browse files

minor ui changes

parent 0085181b
No related branches found
No related tags found
4 merge requests!81New stable release,!43Merge dev to master,!33Draft: merge dev to master,!31Misc stuff
<template> <template>
<div> <div>
<v-progress-linear v-if="loading" :color="loadingColor" :indeterminate="!error" />
<v-card> <v-card>
<v-progress-linear v-if="loading" :color="loadingColor" :indeterminate="!error" />
<v-card-title> <v-card-title>
Create Database Create Database
</v-card-title> </v-card-title>
......
...@@ -32,12 +32,11 @@ app.post('/table_from_csv', upload.single('file'), async (req, res) => { ...@@ -32,12 +32,11 @@ app.post('/table_from_csv', upload.single('file'), async (req, res) => {
headers: { 'Content-Type': 'application/json' } headers: { 'Content-Type': 'application/json' }
}) })
console.debug('analyzed', analysis) console.debug('analyzed', analysis)
analysis = await analysis.json() analysis = JSON.parse(await analysis.json())
if (!analysis.success) { console.log(analysis)
console.error('Failed to determine datatypes', analysis.message) if (!analysis.columns) {
return res.json({ success: false, message: analysis.message }) return res.json({ success: false, message: 'Columns array missing' })
} }
// analysis = JSON.parse(analysis)
} catch (error) { } catch (error) {
console.error('failed to analyze', error) console.error('failed to analyze', error)
return res.json({ success: false, error }) return res.json({ success: false, error })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment