diff --git a/server b/server index 0b65b849d..7480ed55c 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit 0b65b849d77e1f7268b4e2c7dc9e6eb88ec5c5bb +Subproject commit 7480ed55c0680d426ad0945eebc5899b1a9b0cce diff --git a/web/src/components/Dashboard/DefineRules.tsx b/web/src/components/Dashboard/DefineRules.tsx index a154f8a3f..facae7993 100644 --- a/web/src/components/Dashboard/DefineRules.tsx +++ b/web/src/components/Dashboard/DefineRules.tsx @@ -18,7 +18,9 @@ const DefineRules = ({ id, setDone, parent }) => { }); const [isLoading, setIsloading] = useState(true); - const [flashcard, setFlashcard] = useState(rules.flashcard_is); + // TODO: fix this hack + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const [_flashcard, setFlashcard] = useState(rules.flashcard_is); const [tags, setTags] = useState(rules.tags_is); const [sendEmail, setSendEmail] = useState(rules.email_notification); const [more, setMore] = useState(false); @@ -48,7 +50,7 @@ const DefineRules = ({ id, setDone, parent }) => { setIsloading(true); try { - await backend.saveRules(id, flashcard, "page", "child_page", tags); + await backend.saveRules(id, rules.flashcard_is, "page", "child_page", tags); setDone(); } catch (error) { console.error(error);