From 69c9120cf782c781b6d9649d903ce0cef7004a6a Mon Sep 17 00:00:00 2001 From: Christoph Ladurner Date: Tue, 1 Oct 2024 15:19:32 +0200 Subject: [PATCH] fix: propsTypes warning * the recordRestrictionGracePeriod is not an object. here https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/records_ui/templates/semantic-ui/invenio_app_rdm/records/deposit.html#L45 it is converted to number only --- .../semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js index b22bc87f6..4adb19347 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/deposit/RDMDepositForm.js @@ -699,7 +699,7 @@ export class RDMDepositForm extends Component { RDMDepositForm.propTypes = { groupsEnabled: PropTypes.bool.isRequired, config: PropTypes.object.isRequired, - recordRestrictionGracePeriod: PropTypes.object.isRequired, + recordRestrictionGracePeriod: PropTypes.number.isRequired, allowRecordRestriction: PropTypes.bool.isRequired, record: PropTypes.object.isRequired, preselectedCommunity: PropTypes.object,