Skip to content

Commit

Permalink
remove call to setCurrentModelPath since it is passed in URL now
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanhab committed Nov 13, 2023
1 parent 07f676a commit 6e47cb6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/pages/ModelListPage/GridList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Typography from '@mui/material/Typography'
import OpenSimControl from '../OpenSimControl'
import OpenSimScene from '../OpenSimScene'
import { ModelMetadataType } from './ModelListPage'
import viewerState from '../../../state/ViewerState'
import { NavLink } from 'react-router-dom'
import { useTranslation } from 'react-i18next'

Expand Down Expand Up @@ -49,9 +48,6 @@ const GridList = ({ modelMetadata }: GridListProps) => {
<Typography gutterBottom variant="h5" component="h2">
<Link
component={NavLink}
onClick={() => {
viewerState.setCurrentModelPath(element.path)
}}
to={"/viewer/"+encodeURIComponent(element.path)}
>
{element.name}
Expand Down

0 comments on commit 6e47cb6

Please sign in to comment.