Skip to content

Commit

Permalink
fix missing dataview instance in link
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Aug 28, 2024
1 parent 253f145 commit ea1f3a3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Link from 'redux-first-router-link'
import { VESSEL_GROUP_REPORT } from 'routes/routes'
import { selectWorkspace } from 'features/workspace/workspace.selectors'
import { DEFAULT_WORKSPACE_CATEGORY, DEFAULT_WORKSPACE_ID } from 'data/workspaces'
import { selectLocationQuery } from 'routes/routes.selectors'
import styles from './VesselGroupReport.module.css'

type VesselGroupReportLinkProps = {
Expand All @@ -13,6 +14,7 @@ type VesselGroupReportLinkProps = {

function VesselGroupReportLink({ children, vesselGroupId }: VesselGroupReportLinkProps) {
const workspace = useSelector(selectWorkspace)
const query = useSelector(selectLocationQuery)
return (
<Link
className={styles.link}
Expand All @@ -23,7 +25,7 @@ function VesselGroupReportLink({ children, vesselGroupId }: VesselGroupReportLin
workspaceId: workspace?.id || DEFAULT_WORKSPACE_ID,
vesselGroupId: vesselGroupId,
},
query: {},
query,
}}
>
{children}
Expand Down

0 comments on commit ea1f3a3

Please sign in to comment.