Skip to content

Commit ffcc2c4

Browse files
silverwinddawidgora
authored andcommitted
Update web_src/js/features/repo-release.ts
Signed-off-by: silverwind <[email protected]>
1 parent 89d93a8 commit ffcc2c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web_src/js/features/repo-release.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ function initGenerateReleaseNotes() {
8080
const resp = await POST(generateUrl, {
8181
data: form,
8282
});
83-
const data = await resp.json();
83+
8484
if (!resp.ok) {
8585
throw new Error(data.errorMessage || resp.statusText);
8686
}
8787

88+
const data = await resp.json();
8889
previousTagSelect.value = data.previous_tag;
8990
previousTagSelect.dispatchEvent(new Event('change', {bubbles: true}));
9091

0 commit comments

Comments
 (0)