Skip to content

Commit cf12899

Browse files
committed
remove tsv option
idk what im doing
1 parent 76771f9 commit cf12899

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

pages/convert.tsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ export default function Home() {
5656

5757
// Fetch data for each table
5858
const dbData: { [key: string]: any[] } = {};
59-
let tsvContent = "";
6059
let jsonContent: { [key: string]: any[] } = {};
6160

6261
for (const table of tableNames) {
@@ -103,21 +102,6 @@ export default function Home() {
103102
}
104103
}
105104

106-
// Export combined TSV file if selected
107-
if (selectedKeys.has("TSV") && tsvContent) {
108-
const blob = new Blob([tsvContent], {
109-
type: "text/tab-separated-values;charset=utf-8;",
110-
});
111-
112-
const link = document.createElement("a");
113-
114-
link.href = URL.createObjectURL(blob);
115-
link.download = `database.tsv`;
116-
document.body.appendChild(link);
117-
link.click();
118-
document.body.removeChild(link);
119-
}
120-
121105
// Export combined JSON file if selected
122106
if (selectedKeys.has("JSON")) {
123107
const blob = new Blob([JSON.stringify(jsonContent, null, 2)], {
@@ -191,7 +175,7 @@ export default function Home() {
191175
2. Select your chosen output format
192176
</h2>
193177
<div className="flex justify-center gap-4">
194-
{["TSV", "CSV", "JSON"].map((option) => {
178+
{["CSV", "JSON"].map((option) => {
195179
const descriptions: { [key: string]: string } =
196180
{
197181
CSV: "Comma-Separated Values",

0 commit comments

Comments
 (0)