Skip to content

Commit

Permalink
fix: add missing strapi list field
Browse files Browse the repository at this point in the history
  • Loading branch information
pgurusinga committed Nov 17, 2023
1 parent 874c084 commit 239c487
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/services/cms/models/StrapiNumericList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,14 @@ export const StrapiNumericListSchema = z
__component: z.literal("page.numeric-list").optional(),
heading: StrapiHeadingSchema.nullable(),
items: z.array(StrapiNumericListItemSchema),
isNumeric: z.boolean(),
outerBackground: StrapiBackgroundSchema.nullable(),
container: StrapiContainerSchema,
})
.merge(HasOptionalStrapiIdSchema)
.merge(OptionalStrapiLinkIdentifierSchema);

export type StrapiNumericList = z.infer<typeof StrapiNumericListSchema>;
type StrapiNumericList = z.infer<typeof StrapiNumericListSchema>;

export const getNumericListProps = (cmsData: StrapiNumericList) => {
const items = cmsData.items.map(getNumericListItemProps);
Expand Down

0 comments on commit 239c487

Please sign in to comment.