fix(web): preview and test releases usage

This commit is contained in:
Zack Spear
2023-11-06 14:48:38 -08:00
parent fdadfe699c
commit 2bd460effb
2 changed files with 6 additions and 4 deletions

View File

@@ -241,8 +241,9 @@ export const useUpdateOsStoreGeneric = (payload?: UpdateOsStorePayload) =>
let releasesUrl = OS_RELEASES;
if (useNextBranch) { releasesUrl = OS_RELEASES_NEXT; }
if (usePreviewBranch) { releasesUrl = OS_RELEASES_PREVIEW; }
if (useTestBranch) { releasesUrl = OS_RELEASES_TEST; }
// @note we don't want PREVIEW / TEST used in the webgui hence additional checks to ensure the URLs exist
if (usePreviewBranch && OS_RELEASES_PREVIEW) { releasesUrl = OS_RELEASES_PREVIEW; }
if (useTestBranch && OS_RELEASES_TEST) { releasesUrl = OS_RELEASES_TEST; }
return releasesUrl;
});