can edit raw content

This commit is contained in:
Julien Calixte
2023-08-20 14:24:38 +02:00
parent 80867ff00b
commit 971df9c45b
5 changed files with 77 additions and 33 deletions

View File

@@ -66,8 +66,8 @@ export const useSpacedRepetitionCards = () => {
continue
}
const { getRawContent } = useFile(cardFile.sha, false)
const content = (await getRawContent()) ?? ''
const { getContent } = useFile(cardFile.sha, false)
const content = (await getContent()) ?? ''
const [front, back, references] =
decodeBase64ToUTF8(content).split('___') ?? []