Skip to content

Commit

Permalink
try logging pathdb btn
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Feb 8, 2024
1 parent 61438a9 commit 5225b9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@

<body>
<div id="root"></div>
<script src="source.9d2c4293.js"></script>
<script src="source.e11cfcbc.js"></script>
</body>


Expand Down
3 changes: 3 additions & 0 deletions source/components/PathdbDownloadButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ class PathdbDownloadButton extends PureComponent {
data = this.props.data[1];
}
let limitedData = data.slice(0, 10);
console.log(limitedData)
console.log("about to try?")
// trigger downloads from pathdb
for (let record of limitedData){
if (record[this.props.field]){
console.log("inside loop")
console.log("trying to get metadata for slide with pathdb id", record[this.props.field])
fetch("/node/" + record[this.props.field] + "?_format=json", {mode: "cors"}).then(x=>x.json()).then(x=>{
console.log("got something for pathdb id", x['field_wsiimage'][0]['url'])
Expand Down

0 comments on commit 5225b9b

Please sign in to comment.