1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-11-26 21:25:18 +01:00

Fix one-off migration

This commit is contained in:
Philipp Heckel 2022-03-11 15:32:24 -05:00
parent 09336fa1e4
commit 70538783d8

View file

@ -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) {