Skip to content

Commit

Permalink
feat(sanity): add early validation list
Browse files Browse the repository at this point in the history
  • Loading branch information
RitaDias committed Aug 28, 2024
1 parent 65b4f16 commit f94541d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/sanity/src/core/releases/tool/detail/ReleaseSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,20 @@ export function ReleaseSummary(props: ReleaseSummaryProps) {
rowProps={getRowProps}
scrollContainerRef={scrollContainerRef}
/>

<div>
{aggregatedData.map(
(document) =>
document.validation.hasError && (
<div key={document.document._id}>
<Text>{document.document._id}</Text>
{document.validation.validation.map((error) => (
<div key={error.path.toString()}>{error.message}</div>
))}
</div>
),
)}
</div>
</>
)
}

0 comments on commit f94541d

Please sign in to comment.