fix: should pass std to AffineEditorContainer (#8678)
To fix [BS-1741](https://linear.app/affine-design/issue/BS-1741/toc-不显示了)
This commit is contained in:
@@ -98,6 +98,9 @@ export const BlocksuiteEditorContainer = forwardRef<
|
|||||||
get origin() {
|
get origin() {
|
||||||
return rootRef.current;
|
return rootRef.current;
|
||||||
},
|
},
|
||||||
|
get std() {
|
||||||
|
return mode === 'page' ? docRef.current?.std : edgelessRef.current?.std;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const proxy = new Proxy(api, {
|
const proxy = new Proxy(api, {
|
||||||
|
|||||||
Reference in New Issue
Block a user