Skip to content

Commit 4f38868

Browse files
authored
revert previous commit
Signed-off-by: silverwind <[email protected]>
1 parent cb0a900 commit 4f38868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_src/js/features/repo-release.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ function initGenerateReleaseNotes() {
8181
data: form,
8282
});
8383

84+
const data = await resp.json();
85+
8486
if (!resp.ok) {
8587
throw new Error(data.errorMessage || resp.statusText);
8688
}
87-
88-
const data = await resp.json();
8989
previousTagSelect.value = data.previous_tag;
9090
previousTagSelect.dispatchEvent(new Event('change', {bubbles: true}));
9191

0 commit comments

Comments
 (0)