From 60516d0b050642b447db8b2ebd50de81db9dcb3d Mon Sep 17 00:00:00 2001 From: Daniel Bachler Date: Fri, 29 Dec 2023 11:30:17 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20allow=20publishing=20without=20exce?= =?UTF-8?q?rpt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- adminSiteClient/gdocsValidation.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/adminSiteClient/gdocsValidation.ts b/adminSiteClient/gdocsValidation.ts index 6fb3d8d3b8a..343a48a9356 100644 --- a/adminSiteClient/gdocsValidation.ts +++ b/adminSiteClient/gdocsValidation.ts @@ -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",