mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-06-27 02:20:56 +12:00
Fix one-off migration
This commit is contained in:
parent
09336fa1e4
commit
70538783d8
|
@ -78,9 +78,7 @@ export const useLocalStorageMigration = () => {
|
||||||
}
|
}
|
||||||
const topicsStr = localStorage.getItem("topics");
|
const topicsStr = localStorage.getItem("topics");
|
||||||
if (topicsStr) {
|
if (topicsStr) {
|
||||||
const topics = topicsStr
|
const topics = JSON.parse(topicsStr).filter(topic => topic !== "");
|
||||||
.split(",")
|
|
||||||
.filter(topic => topic !== "");
|
|
||||||
if (topics.length > 0) {
|
if (topics.length > 0) {
|
||||||
(async () => {
|
(async () => {
|
||||||
for (const topic of topics) {
|
for (const topic of topics) {
|
||||||
|
|
Loading…
Reference in a new issue