Skip to content

Commit

Permalink
fix missing rich text entity error wording
Browse files Browse the repository at this point in the history
  • Loading branch information
pokornyd authored and JiriLojda committed Jan 23, 2024
1 parent 0c1b802 commit 9a2d41a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/importExportEntities/entities/utils/richText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const replaceImportRichTextReferences = (
replaceAssetId: (oldAssetId, asInternalId, asExternalId) => {
const newAssetId = context.assetIdsByOldIds.get(oldAssetId);
if (!newAssetId) {
logWarning(logOptions, "standard", `Found asset id "${oldAssetId}" in rich text that doesn't exist.`);
logWarning(logOptions, "standard", `Found asset id "${oldAssetId}" of a non-existent asset in the rich text.`);
return asExternalId(oldAssetId);
}

Expand All @@ -54,7 +54,7 @@ export const replaceImportRichTextReferences = (

const newItemId = context.contentItemContextByOldIds.get(oldItemId);
if (!newItemId) {
logWarning(logOptions, "standard", `Found item id "${oldItemId}" in rich text that doesn't exist.`);
logWarning(logOptions, "standard", `Found item id "${oldItemId}" of a non-existent item in the rich text.`);
return asExternalId(oldItemId);
}

Expand All @@ -63,7 +63,7 @@ export const replaceImportRichTextReferences = (
replaceItemLinkId: (oldItemId, asInternalId, asExternalId) => {
const newItemId = context.contentItemContextByOldIds.get(oldItemId);
if (!newItemId) {
logWarning(logOptions, "standard", `Found a link to item id "${oldItemId}" in rich text that doesn't exist.`);
logWarning(logOptions, "standard", `Found a link to a non-existent item id "${oldItemId}" in the rich text.`);
return asExternalId(oldItemId);
}

Expand Down

0 comments on commit 9a2d41a

Please sign in to comment.