Skip to content

Commit

Permalink
fix(mentions): Correct selected tab
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed Feb 7, 2025
1 parent 2242c9d commit dee478e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/src/pages/mentions/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -613,11 +613,11 @@ export default function Mentions() {

{searchParams.get('view') === 'table' && (
<Tabs
defaultActiveIndex={urlSearchParams.type === 'software' ? 0 : 1}
defaultActiveIndex={searchParams.get('type') === 'software' ? 0 : 1}
onTabChange={(index) => onTabChange(index)}
>
<Tab label="Software">
{urlSearchParams.type === 'software' && (
{searchParams.get('type') === 'software' && (
<DataTable
currentPageReportTemplate="{first} to {last} of {totalRecords}"
dataKey="id"
Expand Down Expand Up @@ -722,7 +722,7 @@ export default function Mentions() {
)}
</Tab>
<Tab label="Datasets">
{urlSearchParams.type === 'datasets' && (
{searchParams.get('type') === 'datasets' && (
<DataTable
currentPageReportTemplate="{first} to {last} of {totalRecords}"
dataKey="id"
Expand Down

0 comments on commit dee478e

Please sign in to comment.