Skip to content

Commit

Permalink
Dynamically remove schema field that causes error
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh committed Feb 23, 2025
1 parent 82acf18 commit deee718
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/components/Meditor/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ export function computeBasicSchema(schema: JSONSchema7): JSONSchema7 {
required: newRequired,
};

// Description isn't needed and just causes rendering issues
// Title and description aren't needed and just causes rendering issues
delete newSchema.title;
delete newSchema.description;
// $schema isn't needed and causes Ajv to throw an error
delete newSchema.$schema;
return newSchema;
}

Expand Down

0 comments on commit deee718

Please sign in to comment.