Skip to content

Commit

Permalink
3555 bug unable to enrich dataset with a text extraction only contain…
Browse files Browse the repository at this point in the history
…s an abstract (#3564)

Co-authored-by: dvince2 <[email protected]>
  • Loading branch information
dvince2 and dvince2 authored May 8, 2024
1 parent d74e8a9 commit f1e0e96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<QuillEditor theme="snow" v-model:content="text" contentType="html" />
<QuillEditor theme="snow" v-model:content="text" contentType="text" />
</template>

<script setup lang="ts">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,10 @@ public ResponseEntity<ResponseStatus> uploadCsv(
final String csvString = new String(csvBytes);
final String[] csvRows = csvString.split("\\R");
final String[] headers = csvRows[0].split(",");
for (int i = 0; i < headers.length; i++) {
// this is very ugly but we're removing opening and closing "'s around these strings.
headers[i] = headers[i].replaceAll("^\"|\"$", "");
}
return uploadCSVAndUpdateColumns(datasetId, filename, csvEntity, headers);
} catch (final IOException e) {
final String error = "Unable to upload csv dataset";
Expand Down

0 comments on commit f1e0e96

Please sign in to comment.