Skip to content

Commit

Permalink
Fix pre crowdin script error
Browse files Browse the repository at this point in the history
  • Loading branch information
lorcan-codes committed Sep 5, 2023
1 parent 01de25d commit dc21547
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions workspaces/cms-scripts/src/crowdin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit dc21547

Please sign in to comment.