X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/66dc4cae4cd37e82d773dc30be046d82d380ec4d..00a6e8aa8dd06f8a2bd7ccccdccfcb6215cf4841:/app/stores/forums.js?ds=sidebyside diff --git a/app/stores/forums.js b/app/stores/forums.js index adc8758..c473124 100644 --- a/app/stores/forums.js +++ b/app/stores/forums.js @@ -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: 'の',