Skip to content

Commit

Permalink
Fixes rte & url slug models (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enngage authored Nov 7, 2024
1 parent 9a5c421 commit d8d8024
Showing 1 changed file with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
MigrationElementModels,
MigrationItemSystem,
MigrationItem,
MigrationItemSystem,
elementsBuilder,
} from "@kontent-ai/migration-toolkit";

Expand Down Expand Up @@ -75,10 +75,8 @@ const movie: MovieItem = {
}),
plot: elementsBuilder.richTextElement({
// Check allowed HTML elements in rich text value at https://kontent.ai/learn/rich-text-in-mapi
value: {
value: `<h1>Warrior</h1><p>...</p>`,
components: [],
},
value: `<h1>Warrior</h1><p>...</p>`,
components: [],
}),
releasecategory: elementsBuilder.taxonomyElement({
value: [
Expand All @@ -92,10 +90,8 @@ const movie: MovieItem = {
}),
seoname: elementsBuilder.urlSlugElement({
// The value is empty because it's autogenerated based on a dependent text element
value: {
mode: "autogenerated",
value: "",
},
mode: "autogenerated",
value: "",
}),
stars: elementsBuilder.linkedItemsElement({
value: [
Expand Down

0 comments on commit d8d8024

Please sign in to comment.