diff options
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/ControlLoop/MonitorInstantiation.js')
-rw-r--r-- | gui-clamp/ui-react/src/components/dialogs/ControlLoop/MonitorInstantiation.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/MonitorInstantiation.js b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/MonitorInstantiation.js index 6c589b8..dad4185 100644 --- a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/MonitorInstantiation.js +++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/MonitorInstantiation.js @@ -36,14 +36,11 @@ const AlertStyled = styled(Alert)` const MonitorInstantiation = (props) => { const [show, setShow] = useState(true); const [controlLoopList, setControlLoopList] = useState([]); - const [windowLocationPathname, setWindowLocationPathname] = useState(''); const [controlLoopInstantiationOk, setControlLoopInstantiationOk] = useState(true); const [controlLoopInstantiationError, setControlLoopInstantiationError] = useState({}); useEffect(async () => { - setWindowLocationPathname(window.location.pathname); - - const controlLoopInstantiation = await ControlLoopService.getControlLoopInstantiation(windowLocationPathname) + const controlLoopInstantiation = await ControlLoopService.getControlLoopInstantiation() .catch(error => error.message); const controlLoopInstantiationJson = await controlLoopInstantiation.json() |