mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-27 08:01:57 -06:00
Fix Update.ps1 hash lookup condition
This commit is contained in:
@@ -127,7 +127,7 @@ export default function DeviceList({ onSelectDevice }) {
|
||||
const fetchLatestRepoHash = useCallback(async () => {
|
||||
try {
|
||||
const params = new URLSearchParams({ repo: "bunny-lab-io/Borealis", branch: "main" });
|
||||
const resp = await fetch(`/api/agent/repo_hash?${params.toString()}`);
|
||||
const resp = await fetch(`/api/repo/current_hash?${params.toString()}`);
|
||||
const json = await resp.json();
|
||||
const sha = (json?.sha || "").trim();
|
||||
if (!resp.ok || !sha) {
|
||||
|
||||
Reference in New Issue
Block a user