From dc215473c109d90a556740f9583ada829183dbbb Mon Sep 17 00:00:00 2001 From: lorcan-codes <126797224+lorcan-codes@users.noreply.github.com> Date: Tue, 5 Sep 2023 10:56:08 +0500 Subject: [PATCH] Fix pre crowdin script error --- workspaces/cms-scripts/src/crowdin.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/workspaces/cms-scripts/src/crowdin.ts b/workspaces/cms-scripts/src/crowdin.ts index 464d0d0675..d3014788e2 100644 --- a/workspaces/cms-scripts/src/crowdin.ts +++ b/workspaces/cms-scripts/src/crowdin.ts @@ -171,11 +171,13 @@ export function handleFields( break; case "markdown": - files.push({ - type: "markdown", - data: data[field.name], - filepath: filepath + "_" + field.name, - }); + if(data[field.name] != null){ + files.push({ + type: "markdown", + data: data[field.name], + filepath: filepath + "_" + field.name, + }); + } break; case "list":