Skip to content
Snippets Groups Projects
Commit 13e7e6da authored by HongKee Moon's avatar HongKee Moon
Browse files

Add Fetch all

parent e1c913a0
Branches cuda_on_cpu
No related tags found
No related merge requests found
......@@ -33,8 +33,8 @@
host = require('./js/const').devHost;
}
let url = taxId === 'all' ? `${host}/proteins?query=${keyword}&size=10000`:
`${host}/proteins?query=${keyword}&species_tax_id=${taxId}&size=10000`;
let url = taxId === 'all' ? `${host}/proteins?query=${keyword}&size=100000`:
`${host}/proteins?query=${keyword}&species_tax_id=${taxId}&size=100000`;
if (keyword && !_.isEmpty(keyword)) {
fetch(url)
......@@ -54,7 +54,9 @@
}, 10);
});
} else {
url = `${host}/proteins?species_tax_id=${taxId}&size=10000`;
url = taxId === 'all' ? `${host}/proteins?size=100000`:
`${host}/proteins?species_tax_id=${taxId}&size=100000`;
fetch(url)
.then(response => response.json())
.then((response) => {
......@@ -111,7 +113,8 @@
}, 10);
});
} else {
url = `${host}/condensates?species_tax_id=${taxId}&size=10000`;
url = taxId === 'all' ? `${host}/condensates?size=10000`
:`${host}/condensates?species_tax_id=${taxId}&size=10000`;
fetch(url)
.then(response => response.json())
.then((response) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment