diff --git a/src/interface/web/app/components/referencePanel/referencePanel.tsx b/src/interface/web/app/components/referencePanel/referencePanel.tsx index 2f7650b3..e8942bb4 100644 --- a/src/interface/web/app/components/referencePanel/referencePanel.tsx +++ b/src/interface/web/app/components/referencePanel/referencePanel.tsx @@ -488,10 +488,10 @@ export function TeaserReferencesSection(props: TeaserReferenceSectionProps) { setNumTeaserSlots(props.isMobileWidth ? 1 : 3); }, [props.isMobileWidth]); - const notesDataToShow = props.notesReferenceCardData.slice(0, numTeaserSlots); - const codeDataToShow = props.codeReferenceCardData.slice( + const codeDataToShow = props.codeReferenceCardData.slice(0, numTeaserSlots); + const notesDataToShow = props.notesReferenceCardData.slice( 0, - numTeaserSlots - notesDataToShow.length, + numTeaserSlots - codeDataToShow.length, ); const onlineDataToShow = notesDataToShow.length + codeDataToShow.length < numTeaserSlots @@ -522,15 +522,6 @@ export function TeaserReferencesSection(props: TeaserReferenceSectionProps) {
{numReferences} sources