fix: copy page link url (#5263)
This commit is contained in:
parent
f2af5f0653
commit
1adfb4dbe4
1 changed files with 4 additions and 1 deletions
|
|
@ -108,7 +108,10 @@ export const PageOptionsDropdown: React.FC<Props> = observer((props) => {
|
|||
{
|
||||
key: "copy-page-link",
|
||||
action: () => {
|
||||
copyUrlToClipboard(`${workspaceSlug?.toString()}/projects/${projectId?.toString()}/pages/${id}`).then(() =>
|
||||
const pageLink = projectId
|
||||
? `${workspaceSlug?.toString()}/projects/${projectId?.toString()}/pages/${id}`
|
||||
: `${workspaceSlug?.toString()}/pages/${id}`;
|
||||
copyUrlToClipboard(pageLink).then(() =>
|
||||
setToast({
|
||||
type: TOAST_TYPE.SUCCESS,
|
||||
title: "Success!",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue