Skip to content

Commit

Permalink
Merge pull request #3503 from owid/gdocs-excerpts-mandatory
Browse files Browse the repository at this point in the history
🔨 make excerpt mandatory again
  • Loading branch information
danyx23 authored Apr 16, 2024
2 parents b164ac0 + f14faa8 commit 692c4b1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions adminSiteClient/gdocsValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,7 @@ function validateExcerpt(
errors: OwidGdocErrorMessage[]
) {
if (!gdoc.content.excerpt) {
errors.push({
property: "excerpt",
type: OwidGdocErrorMessageType.Warning,
message: `It is advised to add an excerpt before publishing.`,
})
errors.push(getMissingContentPropertyError("excerpt"))
} else if (gdoc.content.excerpt.length > EXCERPT_MAX_LENGTH) {
errors.push({
property: "excerpt",
Expand Down

0 comments on commit 692c4b1

Please sign in to comment.