Fix one-off migration
This commit is contained in:
		
							parent
							
								
									09336fa1e4
								
							
						
					
					
						commit
						70538783d8
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue