mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-25 10:22:55 +08:00
fix(core): fix copy block link (#8650)
This commit is contained in:
@@ -172,8 +172,8 @@ export const AFFiNESharePage = (props: ShareMenuProps) => {
|
|||||||
onClickCopyLink('edgeless' as DocMode);
|
onClickCopyLink('edgeless' as DocMode);
|
||||||
}, [onClickCopyLink]);
|
}, [onClickCopyLink]);
|
||||||
const onCopyBlockLink = useCallback(() => {
|
const onCopyBlockLink = useCallback(() => {
|
||||||
onClickCopyLink(undefined, blockIds, elementIds);
|
onClickCopyLink(currentMode, blockIds, elementIds);
|
||||||
}, [onClickCopyLink, blockIds, elementIds]);
|
}, [onClickCopyLink, currentMode, blockIds, elementIds]);
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
// TODO(@eyhn): loading and error UI
|
// TODO(@eyhn): loading and error UI
|
||||||
|
|||||||
Reference in New Issue
Block a user