From 95dd999db7d34f1233a5ab024f9cb2d0c088a9cd Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Mon, 17 Mar 2025 13:20:51 +0100 Subject: [PATCH] Fix pop up when issue doesn't exist Signed-off-by: Minecon724 --- web_src/js/components/ContextPopup.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_src/js/components/ContextPopup.vue b/web_src/js/components/ContextPopup.vue index 752a9a1d6b..7e08ae6580 100644 --- a/web_src/js/components/ContextPopup.vue +++ b/web_src/js/components/ContextPopup.vue @@ -95,12 +95,12 @@ export default { try { const response = await GET(`${appSubUrl}/${data.owner}/${data.repo}/issues/${data.index}/info`); - const respJson = await response.json(); + const respText = await response.text(); if (!response.ok) { - this.i18nErrorMessage = respJson.message ?? i18n.network_error; + this.i18nErrorMessage = respText ?? i18n.error_occurred; return; } - this.issue = respJson; + this.issue = JSON.parse(respText); } catch { this.i18nErrorMessage = i18n.network_error; } finally {