diff --git a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/index.js b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/index.js index b9cc792ea..1ce56e709 100644 --- a/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/index.js +++ b/invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/landing_page/index.js @@ -14,7 +14,7 @@ import { RecordVersionsList } from "./RecordVersionsList"; import { RecordCitationField } from "./RecordCitationField"; import { ExportDropdown } from "./ExportDropdown"; import { CommunitiesManagement } from "./CommunitiesManagement"; -import { OverridableContext, overrideStore } from "react-overridable"; +import Overridable, { OverridableContext, overrideStore } from "react-overridable"; const recordManagementAppDiv = document.getElementById("recordManagement"); const recordManagementMobile = document.getElementById("recordManagementMobile"); @@ -26,6 +26,8 @@ const sidebarCommunitiesManageDiv = document.getElementById( "sidebar-communities-manage" ); +const overriddenComponents = overrideStore.getAll(); + if (recordManagementAppDiv) { renderRecordManagement(recordManagementAppDiv); recordManagementMobile && renderRecordManagement(recordManagementMobile); @@ -33,7 +35,7 @@ if (recordManagementAppDiv) { function renderRecordManagement(element) { ReactDOM.render( - + , + + + + + , sidebarCommunitiesManageDiv ); }