Skip to content

Commit

Permalink
Temp build on push
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Jan 21, 2025
1 parent 0aa9a84 commit 698918e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Build and Push Docker Images

on:
push:
branches:
- main
on: push
# push:
# branches:
# - main

env:
REGISTRY: ghcr.io
Expand Down
12 changes: 4 additions & 8 deletions data-viewer/src/components/NexusViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,7 @@ export default function NexusViewer(props: {
}

fetch(`${fileQueryUrl}?${fileQueryParams}`, { method: "GET", headers })
.then((res) => {
if (!res.ok) {
throw new Error(res.statusText);
}
return res.text();
})
.then((res) => res.text())
.then((data) => {
const filepath_to_use = data
.split("%20")
Expand All @@ -66,8 +61,9 @@ export default function NexusViewer(props: {
.join(",")
.replace(/"/g, "");
setFilePath(filepath_to_use);
setLoading(false);
});
})
.catch((error) => Error(error))
.finally(() => setLoading(false));
}, [
props.apiUrl,
props.instrument,
Expand Down

0 comments on commit 698918e

Please sign in to comment.