Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug:

Vanessaa02b27b37ff8
diff --git a/app/src/protyle/scroll/saveScroll.ts b/app/src/protyle/scroll/saveScroll.ts
index 5ce34180c6..eb270ddd51 100644
--- a/app/src/protyle/scroll/saveScroll.ts
+++ b/app/src/protyle/scroll/saveScroll.ts
@@ -85,7 +85,7 @@ export const getDocByScroll = (options: {
highlight: !isSupportCSSHL(),
}, response => {
onGet({
- scrollPosition: options.mergedOptions.scrollPosition,
+ scrollPosition: options.mergedOptions?.scrollPosition,
data: response,
protyle: options.protyle,
action: actions,
@@ -99,7 +99,7 @@ export const getDocByScroll = (options: {
} else {
actions.push(Constants.CB_GET_ALL);
onGet({
- scrollPosition: options.mergedOptions.scrollPosition,
+ scrollPosition: options.mergedOptions?.scrollPosition,
data: response,
protyle: options.protyle,
action: actions,
@@ -123,7 +123,7 @@ export const getDocByScroll = (options: {
highlight: !isSupportCSSHL(),
}, response => {
onGet({
- scrollPosition: options.mergedOptions.scrollPosition,
+ scrollPosition: options.mergedOptions?.scrollPosition,
data: response,
protyle: options.protyle,
action: actions,