From 90c8fee1a65dbaade999ce72e6b1abd14613727d Mon Sep 17 00:00:00 2001 From: Rob Court Date: Wed, 10 Jul 2024 07:07:49 +0100 Subject: [PATCH] fix to ensure VFBu_ id's are loaded --- components/VFBMain.js | 2 +- components/interface/VFBUploader/VFBUploader.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/VFBMain.js b/components/VFBMain.js index dd08f23cc..6332e9b08 100644 --- a/components/VFBMain.js +++ b/components/VFBMain.js @@ -1310,7 +1310,7 @@ class VFBMain extends React.Component { that.urlQueryLoader.push({ id : querySplit[0].trim(), selection : querySplit[1].trim() }); if (querySplit[1].trim() == "SimilarMorphologyToUserData") { // if a user data query is called and the VFBu_ id is not loaded after timeout then it must still be being analysed - let url = window.location.origin + window.location.pathname + "?q=" + query; + let url = window.location.origin + window.location.pathname + "?id=" + querySplit[0].trim() + "&q=" + query; // Use an IIFE (Immediately Invoked Function Expression) to create a closure and capture the variables (function(querySplit, url) { setTimeout(function() { diff --git a/components/interface/VFBUploader/VFBUploader.js b/components/interface/VFBUploader/VFBUploader.js index 58d8daec5..353549ce0 100644 --- a/components/interface/VFBUploader/VFBUploader.js +++ b/components/interface/VFBUploader/VFBUploader.js @@ -90,7 +90,7 @@ class VFBUploader extends React.Component { requestUpload (formData, url) { let self = this; let _id = formData.get("vfbID"); - let newURL = window.location.origin + window.location.pathname + "?q=" + _id + "," + this.configuration.queryType; + let newURL = window.location.origin + window.location.pathname + "?id=" + _id + "&q=" + _id + "," + this.configuration.queryType; this.setState({ fileNBLASTURL: newURL, uploading : true }); window.setCookie(_id, newURL, this.configuration.cookieStorageDays);