Skip to content

Commit 6d38ea9

Browse files
committed
fix: scroll
1 parent 7d33bf9 commit 6d38ea9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/demo/src/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,14 @@ async function initView() {
2020
const docId = getDocId(import.meta.env.VITE_DEFAULT_EXCEL_ID);
2121
location.hash = `#${docId}`;
2222
const doc = initDoc({ guid: docId });
23-
const { isServer, provider, isInit } = await initCollaboration(doc);
23+
const { isServer, provider } = await initCollaboration(doc);
2424
const controller = initController({
2525
copyOrCut,
2626
paste,
2727
worker: workerInstance,
2828
doc,
2929
});
30-
if (isInit) {
31-
controller.setCurrentSheetId(controller.getCurrentSheetId());
32-
}
30+
controller.setCurrentSheetId(controller.getCurrentSheetId());
3331

3432
createRoot(document.getElementById('root')!).render(
3533
<StrictMode>

0 commit comments

Comments
 (0)