From 8e9cb430aa4cd1b7a8208fe55a0beed840451b28 Mon Sep 17 00:00:00 2001 From: fsimonjetz Date: Mon, 4 Dec 2023 14:35:05 +0000 Subject: [PATCH] minor bug fixes --- src/corpus/ui/manuscripts/ManuscriptForm.tsx | 36 ++++++++------------ 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/src/corpus/ui/manuscripts/ManuscriptForm.tsx b/src/corpus/ui/manuscripts/ManuscriptForm.tsx index 90cc1c3ad..8d6677b9a 100644 --- a/src/corpus/ui/manuscripts/ManuscriptForm.tsx +++ b/src/corpus/ui/manuscripts/ManuscriptForm.tsx @@ -16,6 +16,8 @@ import { provenances, Provenances } from 'corpus/domain/provenance' import BibliographyEntry from 'bibliography/domain/BibliographyEntry' import Editor from 'editor/Editor' +const indent = '\u00A0'.repeat(4) + export default function ManuscriptForm({ manuscript, onChange, @@ -86,17 +88,12 @@ export default function ManuscriptForm({ value={manuscript.provenance.name} onChange={handleEnumChange('provenance', Provenances)} > - {provenances.map((provenance) => - _.isNil(provenance.parent) ? ( - - ) : ( - - ) - )} + {provenances.map((provenance, index) => ( + + ))} @@ -120,17 +117,12 @@ export default function ManuscriptForm({ value={manuscript.period.name} onChange={handleEnumChange('period', Periods)} > - {periods.map((period) => - _.isNil(period.parent) ? ( - - ) : ( - - ) - )} + {periods.map((period, index) => ( + + ))}