]> git.r.bdr.sh - rbdr/forum/blobdiff - app/stores/forums.js
Add svelte linting
[rbdr/forum] / app / stores / forums.js
index adc8758d1fc9e20a1efda07f1058b1d4bc09c880..c4731247611fe71431dbe87f42410523b1becb93 100644 (file)
@@ -72,10 +72,11 @@ internals.forums = [
 
 export const forums = writable(internals.forums);
 
-export function addForum() {
+export const addForum = function addForum() {
+
   const id = Math.random();
 
-  forums.update((forums) => ([...forums,
+  forums.update((originalForums) => ([...originalForums,
     {
       id,
       glyph: 'の',