diff options
Diffstat (limited to 'gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.js')
-rw-r--r-- | gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.js b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.js index 6ee6a43..380838e 100644 --- a/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.js +++ b/gui-clamp/ui-react/src/components/dialogs/ControlLoop/UploadToscaFile.js @@ -22,14 +22,12 @@ import React, { useState } from "react"; import ControlLoopService from "../../../api/ControlLoopService"; const UploadToscaFile = (props) => { - const [windowLocationPathName, setWindowLocationPathname] = useState(''); const postServiceTemplateHandler = async (event) => { event.preventDefault(); console.log('postServiceTemplateHandler called'); - setWindowLocationPathname(window.location.pathname); - const response = await ControlLoopService.uploadToscaFile(props.toscaObject, windowLocationPathName) + const response = await ControlLoopService.uploadToscaFile(props.toscaObject) .catch(error => error.message); // const responseMessage = await response.text(); |