Skip to content

Commit

Permalink
remove unnecessary sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Collins authored and Chris Collins committed Oct 28, 2022
1 parent 84c5aec commit 100fef5
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ function CreateGlossaryEntityModal(props: Props) {
const [createGlossaryTermMutation] = useCreateGlossaryTermMutation();
const [createGlossaryNodeMutation] = useCreateGlossaryNodeMutation();

const sanitizedDocumentation = DOMPurify.sanitize(documentation);

function createGlossaryEntity() {
const mutation =
entityType === EntityType.GlossaryTerm ? createGlossaryTermMutation : createGlossaryNodeMutation;
Expand Down Expand Up @@ -158,7 +156,7 @@ function CreateGlossaryEntityModal(props: Props) {
>
<StyledButton type="link" onClick={() => setIsDocumentationModalVisible(true)}>
<EditOutlined />
{sanitizedDocumentation ? 'Edit' : 'Add'} Documentation
{documentation ? 'Edit' : 'Add'} Documentation
</StyledButton>
{isDocumentationModalVisible && (
<DescriptionModal
Expand Down

0 comments on commit 100fef5

Please sign in to comment.