Bläddra i källkod

Fix one-off migration

Philipp Heckel 3 år sedan
förälder
incheckning
70538783d8
1 ändrade filer med 1 tillägg och 3 borttagningar
  1. 1 3
      web/src/components/hooks.js

+ 1 - 3
web/src/components/hooks.js

@@ -78,9 +78,7 @@ export const useLocalStorageMigration = () => {
         }
         const topicsStr = localStorage.getItem("topics");
         if (topicsStr) {
-            const topics = topicsStr
-                .split(",")
-                .filter(topic => topic !== "");
+            const topics = JSON.parse(topicsStr).filter(topic => topic !== "");
             if (topics.length > 0) {
                 (async () => {
                     for (const topic of topics) {