Explorar el Código

trim beim medienimport

hmt hace 4 años
padre
commit
87242116ef
Se han modificado 1 ficheros con 1 adiciones y 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);