diff --git a/src/main/webui/src/ProposalEditorView/justifications/edit.modal.tsx b/src/main/webui/src/ProposalEditorView/justifications/edit.modal.tsx index 4eff5785..f98c25a9 100644 --- a/src/main/webui/src/ProposalEditorView/justifications/edit.modal.tsx +++ b/src/main/webui/src/ProposalEditorView/justifications/edit.modal.tsx @@ -29,11 +29,7 @@ export default function JustificationsEditModal(justificationProps : Justificati opened={opened} onClose={props.closeModal} title={"View/Edit " + capitalizeFirstChar(props.which) + " Justification"} - //fullScreen - size="auto" - height={75} - centered - + size="60%" > diff --git a/src/main/webui/src/ProposalEditorView/justifications/justification.form.tsx b/src/main/webui/src/ProposalEditorView/justifications/justification.form.tsx index 2f86f558..1fdc0630 100644 --- a/src/main/webui/src/ProposalEditorView/justifications/justification.form.tsx +++ b/src/main/webui/src/ProposalEditorView/justifications/justification.form.tsx @@ -28,9 +28,9 @@ const JustificationTextArea = (form : UseFormReturnType) => { return ( form.setValues({text: newValue, format: form.values.format})} - highlight={code => highlight(code, languages.asciidoc, 'asciidoc')} + highlight={code => highlight(code ?? "", languages.asciidoc, 'asciidoc')} maxLength={MAX_CHARS_FOR_JUSTIFICATION} {...form.getInputProps('text')} /> @@ -40,9 +40,9 @@ const JustificationTextArea = (form : UseFormReturnType) => { return ( form.setValues({text: newValue, format: form.values.format})} - highlight={code => highlight(code, languages.latex, 'latex')} + highlight={code => highlight(code ?? "", languages.latex, 'latex')} maxLength={MAX_CHARS_FOR_JUSTIFICATION} {...form.getInputProps('text')} /> @@ -52,9 +52,9 @@ const JustificationTextArea = (form : UseFormReturnType) => { return ( form.setValues({text: newValue, format: form.values.format})} - highlight={code => highlight(code, languages.rest, 'rest')} + highlight={code => highlight(code ?? "", languages.rest, 'rest')} maxLength={MAX_CHARS_FOR_JUSTIFICATION} {...form.getInputProps('text')} /> @@ -151,7 +151,7 @@ export default function JustificationForm(props: JustificationProps) - {form.values.format==='latex' && PreviewJustification(form.values.format!, form.values.text!)} + {form.values.format==='latex' && PreviewJustification(form.values.format!, form.values.text ?? "")} ); } \ No newline at end of file diff --git a/src/main/webui/src/ProposalEditorView/justifications/justifications.table.tsx b/src/main/webui/src/ProposalEditorView/justifications/justifications.table.tsx index 54afee8c..f33318c6 100644 --- a/src/main/webui/src/ProposalEditorView/justifications/justifications.table.tsx +++ b/src/main/webui/src/ProposalEditorView/justifications/justifications.table.tsx @@ -39,7 +39,7 @@ export default function JustificationsTable(justifications: JustificationKinds) Scientific - {WordCount(justifications.scientific.text!)} + {WordCount(justifications.scientific.text ?? "")} {justifications.scientific.format} Technical - {WordCount(justifications.technical.text!)} + {WordCount(justifications.technical.text ?? "")} {justifications.technical.format}