chore: run linter
This commit is contained in:
parent
4302ece49b
commit
63582b644c
@ -8,12 +8,7 @@
|
|||||||
<i class="material-icons">description</i>
|
<i class="material-icons">description</i>
|
||||||
<p>{{ $t("files.lonely") }}</p>
|
<p>{{ $t("files.lonely") }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div v-else class="csv-table-container" @wheel.stop @touchmove.stop>
|
||||||
v-else
|
|
||||||
class="csv-table-container"
|
|
||||||
@wheel.stop
|
|
||||||
@touchmove.stop
|
|
||||||
>
|
|
||||||
<table class="csv-table">
|
<table class="csv-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@ -66,7 +61,11 @@ const displayError = computed(() => {
|
|||||||
return props.error;
|
return props.error;
|
||||||
}
|
}
|
||||||
// Check for parse errors
|
// Check for parse errors
|
||||||
if (props.content && props.content.trim().length > 0 && data.value.headers.length === 0) {
|
if (
|
||||||
|
props.content &&
|
||||||
|
props.content.trim().length > 0 &&
|
||||||
|
data.value.headers.length === 0
|
||||||
|
) {
|
||||||
return "Failed to parse CSV file";
|
return "Failed to parse CSV file";
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user