summaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react/src/api/UploadToscaFile.js
diff options
context:
space:
mode:
authorsaul.gill <saul.gill@est.tech>2021-06-23 16:54:10 +0100
committersaul.gill <saul.gill@est.tech>2021-06-24 11:30:31 +0100
commit6543a1ad2d494053cfd1548aa471d2449739b29e (patch)
tree55768d6c8b3d45c9334c8078fc632c8c4d11a060 /gui-clamp/ui-react/src/api/UploadToscaFile.js
parent368a50d75e7a4cd17294b90321b90ef59c08c0c1 (diff)
Added jest/enzyme tests for new components
Tests and snapshots added for reference Single package added to package.json Issue-ID: POLICY-3423 Change-Id: Ica0045bb80f587856f6e2392c3d846b6416cce21 Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'gui-clamp/ui-react/src/api/UploadToscaFile.js')
-rw-r--r--gui-clamp/ui-react/src/api/UploadToscaFile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui-clamp/ui-react/src/api/UploadToscaFile.js b/gui-clamp/ui-react/src/api/UploadToscaFile.js
index 1bde9e7..4173e0d 100644
--- a/gui-clamp/ui-react/src/api/UploadToscaFile.js
+++ b/gui-clamp/ui-react/src/api/UploadToscaFile.js
@@ -26,8 +26,8 @@ const UploadToscaFile = (props) => {
const [windowLocationPathName, setWindowLocationPathname] = useState('');
const postServiceTemplateHandler = async (event) => {
-
event.preventDefault();
+ console.log('postServiceTemplateHandler called');
setWindowLocationPathname(window.location.pathname);
const response = await fetch(windowLocationPathName +