@prmichaelsen/acp-visualizer 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/routes/__root.tsx +3 -2
package/package.json
CHANGED
package/src/routes/__root.tsx
CHANGED
|
@@ -118,7 +118,8 @@ function RootLayout() {
|
|
|
118
118
|
setInitialLoadDone(true)
|
|
119
119
|
|
|
120
120
|
const repoParam = getRepoFromUrl()
|
|
121
|
-
|
|
121
|
+
// Repo param takes precedence over default local data
|
|
122
|
+
if (repoParam) {
|
|
122
123
|
fetchGitHubProgress({ data: repoParam }).then((result) => {
|
|
123
124
|
if (result.ok) {
|
|
124
125
|
setProgressData(result.data)
|
|
@@ -126,7 +127,7 @@ function RootLayout() {
|
|
|
126
127
|
}
|
|
127
128
|
})
|
|
128
129
|
}
|
|
129
|
-
}, [initialLoadDone
|
|
130
|
+
}, [initialLoadDone])
|
|
130
131
|
|
|
131
132
|
const handleGitHubLoad = useCallback(async (owner: string, repo: string) => {
|
|
132
133
|
const result = await fetchGitHubProgress({ data: { owner, repo } })
|