Explorar o código

trim beim medienimport

hmt %!s(int64=4) %!d(string=hai) anos
pai
achega
87242116ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/Einstellungen.svelte

+ 1 - 1
src/components/Einstellungen.svelte

@@ -72,7 +72,7 @@
       "INSERT INTO medienbezeichnung (name) VALUES (?)"
     );
     const insertMany = $db.transaction((medien) => {
-      for (const medium of medien) insert.run(medium);
+      for (const medium of medien) insert.run(medium.trim());
     });
     try {
       insertMany(medien);