Skip to content

Commit

Permalink
Merge pull request I-TECH-UW#934 from mozzy11/develop_3x
Browse files Browse the repository at this point in the history
minor fix
  • Loading branch information
mozzy11 authored Mar 29, 2024
2 parents c64cc65 + 05e3269 commit 19a36cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/home/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const HomeDashBoard: React.FC<DashBoardProps> = () => {

const fetchTestSections = (res) => {
setTestSections(res);
setSelectedTestSection(res[0].id);
setSelectedTestSection(res[0]?.id);
};

const loadNextResultsPage = () => {
Expand Down Expand Up @@ -316,7 +316,7 @@ const HomeDashBoard: React.FC<DashBoardProps> = () => {
setSelectedTile(tile);
} else {
setSelectedTile(null);
setSelectedTestSection(testSections[0].id);
setSelectedTestSection(testSections[0]?.id);
}
};

Expand Down Expand Up @@ -514,7 +514,7 @@ const HomeDashBoard: React.FC<DashBoardProps> = () => {
<Column lg={16}>
<Tabs>
<TabList aria-label="List of tabs" contained>
{testSections.map((item, idx) => {
{testSections?.map((item, idx) => {
return (
<Tab
key={idx}
Expand Down

0 comments on commit 19a36cc

Please sign in to comment.