fix(core): adjust the tracking point for copy sharing link (#8395)

close AF-1439
This commit is contained in:
JimmFly 2024-09-26 03:27:18 +00:00
parent abd57484ba
commit bd9ae3d80a
No known key found for this signature in database
GPG Key ID: 126E0320FEB0D05C

View File

@ -172,8 +172,8 @@ export const AFFiNESharePage = (props: ShareMenuProps) => {
onClickCopyLink('edgeless' as DocMode);
}, [onClickCopyLink]);
const onCopyBlockLink = useCallback(() => {
onClickCopyLink(currentMode, blockIds, elementIds);
}, [currentMode, onClickCopyLink, blockIds, elementIds]);
onClickCopyLink(undefined, blockIds, elementIds);
}, [onClickCopyLink, blockIds, elementIds]);
if (isLoading) {
// TODO(@eyhn): loading and error UI