Skip to content

Commit

Permalink
Another fox for story reset
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGlauser committed Sep 18, 2022
1 parent 3104d40 commit ae5694b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/lib/components/Booklet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
let currentSnippet;
currentPage.subscribe((value:any) => {
currentPageValue=value
currentSnippet = cleanSnippet(value?.snippet)
if(value){
currentPageValue=value
currentSnippet = cleanSnippet(value?.snippet)
}
})
currentPageNumber.subscribe(value => currentPageNumberValue=value)
Expand Down

0 comments on commit ae5694b

Please sign in to comment.