Skip to content

Commit

Permalink
Merge pull request #3049 from owid/allow-publishing-without-excerpt
Browse files Browse the repository at this point in the history
✨ allow publishing without excerpt
  • Loading branch information
danyx23 authored Dec 31, 2023
2 parents 7b4ef74 + 60516d0 commit 9bc5aa7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion adminSiteClient/gdocsValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ function validateExcerpt(
errors: OwidGdocErrorMessage[]
) {
if (!gdoc.content.excerpt) {
errors.push(getMissingContentPropertyError("excerpt"))
errors.push({
property: "excerpt",
type: OwidGdocErrorMessageType.Warning,
message: `It is advised to add an excerpt before publishing.`,
})
} else if (gdoc.content.excerpt.length > EXCERPT_MAX_LENGTH) {
errors.push({
property: "excerpt",
Expand Down

0 comments on commit 9bc5aa7

Please sign in to comment.