Skip to content

Commit

Permalink
Merge pull request #1556 from VirtualFlyBrain/alpha
Browse files Browse the repository at this point in the history
fix to ensure VFBu_ id's are loaded
  • Loading branch information
Robbie1977 authored Jul 10, 2024
2 parents ede09a2 + 90c8fee commit a29d7ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/VFBMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion components/interface/VFBUploader/VFBUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a29d7ff

Please sign in to comment.