Skip to content

Commit

Permalink
Allow duplication of dataset items with no title, link text and descr…
Browse files Browse the repository at this point in the history
…iption (#2725)

Fixes #2713
  • Loading branch information
finnar-bin authored and shrunyan committed May 31, 2024
1 parent b29ab32 commit bb8da60
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export const DuplicateItemDialog = ({ onClose }: DuplicateItemProps) => {
web: {
canonicalTagMode: item.web.canonicalTagMode,
parentZUID: item.web.parentZUID,
metaLinkText: item.web.metaLinkText.slice(0, 143) + " (copy)",
metaTitle: item.web.metaTitle.slice(0, 143) + " (copy)",
metaDescription: item.web.metaDescription.slice(0, 153) + " (copy)",
metaLinkText: item.web.metaLinkText?.slice(0, 143) + " (copy)",
metaTitle: item.web.metaTitle?.slice(0, 143) + " (copy)",
metaDescription: item.web.metaDescription?.slice(0, 153) + " (copy)",
pathPart: item.web.pathPart
? item.web.pathPart + `-${new Date().toISOString()}`
: undefined,
Expand Down

0 comments on commit bb8da60

Please sign in to comment.