Skip to content

Commit 1c74028

Browse files
committed
fix: form accordion label
1 parent bbe64c2 commit 1c74028

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,16 +191,19 @@ export class RDMDepositForm extends Component {
191191
includesPaths={this.sectionsConfig["files-section"]}
192192
severityChecks={this.severityChecks}
193193
active
194+
// NOTE: This is needed because the `FormFeedbackSummary` component
195+
// expects the `label` prop to be a string.
196+
data-label={i18next.t("Files")}
194197
label={
195198
<>
196199
{i18next.t("Files")}
197-
{record.is_published && (
200+
{record.is_published ? (
198201
<FileModificationUntil
199202
fileModification={fileModification}
200203
filesLocked={filesLocked}
201204
record={record}
202205
/>
203-
)}
206+
) : null}
204207
</>
205208
}
206209
id="files-section"

0 commit comments

Comments
 (0)