From 9be5e7d9b4d4dd8d5b1aee04e66815e2ca57ead7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Tue, 5 Nov 2024 11:28:55 +0000 Subject: [PATCH 1/2] fix(web): proper handle of the network prefix --- web/src/utils/network.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/network.ts b/web/src/utils/network.ts index 0e72467a34..1f9a037082 100644 --- a/web/src/utils/network.ts +++ b/web/src/utils/network.ts @@ -61,7 +61,7 @@ const isValidIp = (value: IPAddress["address"]) => ipaddr.IPv4.isValidFourPartDe * @return true if given IP is valid; false otherwise. */ const isValidIpPrefix = (value: IPAddress["prefix"]) => { - const prefix = value as string; + const prefix = String(value); if (prefix.match(/^\d+$/)) { return parseInt(prefix) <= 32; From 27e2c0b5a7fae7c7dc8bdcdbb36a57f51c7d7229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Tue, 5 Nov 2024 11:34:10 +0000 Subject: [PATCH 2/2] docs(web): update changes file --- web/package/agama-web-ui.changes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/package/agama-web-ui.changes b/web/package/agama-web-ui.changes index 7f6a0a5a6b..c306710042 100644 --- a/web/package/agama-web-ui.changes +++ b/web/package/agama-web-ui.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Nov 5 11:33:12 UTC 2024 - Imobach Gonzalez Sosa + +- Fix a crash when editing a network connection containing an + additional IP address (gh#agama-project/agama#1728). + ------------------------------------------------------------------- Wed Oct 30 22:26:29 UTC 2024 - David Diaz