hotfix-part2

pull/50/head
Alex 1 year ago
parent 8ac143105b
commit 4fd02c47a8

@ -104,20 +104,13 @@ This will return a new DataFrame with all the columns from both tables, and only
.then(data => {
console.log('Success:', data);
localStorage.setItem("docsIndex", JSON.stringify(data));
generateOptions()
}
)
}
// check if api_key is set
if (localStorage.getItem('apiKey') === null) {
console.log("apiKey is not set")
document.getElementById('modal').classList.toggle('hidden')
}
if (localStorage.getItem('docsIndex') === null) {
console.log("docsIndex is not set")
docsIndex()
}
function generateOptions(){
docsIndex = localStorage.getItem('docsIndex')
// create option on select with id select-docs
var select = document.getElementById("select-docs");
@ -140,7 +133,18 @@ This will return a new DataFrame with all the columns from both tables, and only
}
}
}
// check if api_key is set
if (localStorage.getItem('apiKey') === null) {
console.log("apiKey is not set")
document.getElementById('modal').classList.toggle('hidden')
}
if (localStorage.getItem('docsIndex') === null) {
console.log("docsIndex is not set")
docsIndex()
}
generateOptions()
</script>
<script src="{{url_for('static',filename='src/authapi.js')}}"></script>

Loading…
Cancel
Save