Browse Source

fix: json import - correction in file upload

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2399/head
Pranav C 2 years ago
parent
commit
0544976730
  1. 14
      packages/nc-gui/components/import/JSONImport.vue

14
packages/nc-gui/components/import/JSONImport.vue

@ -9,7 +9,7 @@
</v-icon>
<span class="caption text-capitalize">Upload</span>
</v-tab>
<v-tab>
<!-- <v-tab>-->
<!-- <v-icon small class="mr-1">
mdi-link-variant
</v-icon>
@ -111,7 +111,6 @@
</div>
</div>
</v-tab-item>
</v-tab>
</v-tabs>
<div class="px-4 pb-2">
@ -166,15 +165,6 @@
<v-tooltip bottom>
<template #activator="{on}">
<input
v-if="quickImportType == 'excel'"
ref="file"
class="nc-json-import-input"
type="file"
style="display: none"
@change="_change($event)"
>
<input
v-if="quickImportType == 'csv'"
ref="file"
class="nc-json-import-input"
type="file"
@ -341,7 +331,7 @@ export default {
console.log('error', e)
this.$store.commit('loader/MutClear')
}
reader.readAsArrayBuffer(file)
reader.readAsText(file)
},
async parseAndExtractData(type, val, name) {

Loading…
Cancel
Save