From 1017b1e3e4e14028c4f95df4a2eb650038eb8009 Mon Sep 17 00:00:00 2001 From: Jochen Klar Date: Tue, 4 Feb 2025 14:17:19 +0100 Subject: [PATCH] Fix sidebar --- .../assets/js/interview/components/sidebar/Navigation.js | 7 ++++--- rdmo/projects/assets/js/interview/containers/Sidebar.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rdmo/projects/assets/js/interview/components/sidebar/Navigation.js b/rdmo/projects/assets/js/interview/components/sidebar/Navigation.js index aea883f470..c7f5826aa5 100644 --- a/rdmo/projects/assets/js/interview/components/sidebar/Navigation.js +++ b/rdmo/projects/assets/js/interview/components/sidebar/Navigation.js @@ -6,7 +6,7 @@ import Html from 'rdmo/core/assets/js/components/Html' import NavigationLink from './NavigationLink' -const Navigation = ({ currentPage, navigation, help, fetchPage }) => { +const Navigation = ({ overview, currentPage, navigation, help, fetchPage }) => { return ( <>

{gettext('Navigation')}

@@ -18,7 +18,7 @@ const Navigation = ({ currentPage, navigation, help, fetchPage }) => {
  • fetchPage(section.first)} /> { @@ -33,7 +33,7 @@ const Navigation = ({ currentPage, navigation, help, fetchPage }) => { page.show ? ( fetchPage(page.id)} /> ) : ( @@ -57,6 +57,7 @@ const Navigation = ({ currentPage, navigation, help, fetchPage }) => { } Navigation.propTypes = { + overview: PropTypes.object.isRequired, currentPage: PropTypes.object, navigation: PropTypes.array.isRequired, help: PropTypes.string.isRequired, diff --git a/rdmo/projects/assets/js/interview/containers/Sidebar.js b/rdmo/projects/assets/js/interview/containers/Sidebar.js index 6c209eb41e..2ef8d5aa22 100644 --- a/rdmo/projects/assets/js/interview/containers/Sidebar.js +++ b/rdmo/projects/assets/js/interview/containers/Sidebar.js @@ -33,6 +33,7 @@ const Sidebar = ({ config, settings, templates, user, project, interview, config help={templates.project_interview_buttons_help} fetchPage={interviewActions.fetchPage} />