Merge branch 'main' of github.com:lite-note/lite-note into main

This commit is contained in:
2021-04-03 23:23:18 +02:00
7 changed files with 35 additions and 15 deletions

View File

@@ -10,12 +10,12 @@ export const useFocus = () => {
const { stackedNotes } = useQueryStackedNotes()
const scrollToFocusedNote = (sha?: string, backToTop?: boolean) => {
if (!sha) {
if (backToTop) {
scrollToNote(0)
return
}
if (backToTop) {
scrollToNote(0)
if (!sha) {
return
}