From 6e47cb69608c17f7ef94248690fa6a2b90ee776c Mon Sep 17 00:00:00 2001 From: aymanhab Date: Mon, 13 Nov 2023 12:09:25 -0800 Subject: [PATCH] remove call to setCurrentModelPath since it is passed in URL now --- src/components/pages/ModelListPage/GridList.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/components/pages/ModelListPage/GridList.tsx b/src/components/pages/ModelListPage/GridList.tsx index def80a6..cd94a2f 100644 --- a/src/components/pages/ModelListPage/GridList.tsx +++ b/src/components/pages/ModelListPage/GridList.tsx @@ -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' @@ -49,9 +48,6 @@ const GridList = ({ modelMetadata }: GridListProps) => { { - viewerState.setCurrentModelPath(element.path) - }} to={"/viewer/"+encodeURIComponent(element.path)} > {element.name}