Skip to content

Commit

Permalink
Truncate text when duplicating item (#2696)
Browse files Browse the repository at this point in the history
Fixes #2669
  • Loading branch information
finnar-bin authored Apr 29, 2024
1 parent c81aafe commit cb5cb67
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 + " (copy)",
metaTitle: item.web.metaTitle + " (copy)",
metaDescription: item.web.metaDescription + " (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 cb5cb67

Please sign in to comment.