Skip to content

Commit 948136e

Browse files
committed
Improve experimental toggle spam fix
1 parent 810243e commit 948136e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/data/SoftwareDownload.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
(ver, oldVer) => {
6161
// Only handle changes, not initial page load where builds are prerendered on server.
6262
if (oldVer !== undefined && ver !== oldVer) {
63-
buildsPromise = buildsPromise.then(() => {
63+
buildsPromise = buildsPromise.then(async () => {
6464
buildsLoading = true;
65-
fetchBuildsOrError({ value: project }, !isStable).then((result) => {
65+
await fetchBuildsOrError({ value: project }, !isStable).then((result) => {
6666
builds = result;
6767
buildsLoading = false;
6868
});

0 commit comments

Comments
 (0)