Skip to content

Commit 34f3cf1

Browse files
committed
Update PageActions.tsx
1 parent 4a64e4b commit 34f3cf1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/gitbook/src/components/PageActions/PageActions.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ export function CopyToClipboard(props: {
304304
const closeDropdown = useDropdownMenuClose();
305305

306306
const language = useLanguage();
307-
const { copied, copy } = useCopiedStore('label');
307+
const labelKey = label.toLowerCase().replace(/\s+/g, '_');
308+
const { copied, copy } = useCopiedStore(labelKey);
308309

309310
return (
310311
<PageActionWrapper

0 commit comments

Comments
 (0)