diff --git a/web/package/agama-web-ui.changes b/web/package/agama-web-ui.changes index 63ec4ae1c9..1195aab852 100644 --- a/web/package/agama-web-ui.changes +++ b/web/package/agama-web-ui.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 21 09:44:08 UTC 2025 - Imobach Gonzalez Sosa + +- Do not crash at the end of the installation when using a legacy + AutoYaST mode (gh#agama-project/agama#1927). + ------------------------------------------------------------------- Mon Jan 20 16:45:18 UTC 2025 - Ladislav Slezák diff --git a/web/src/api/storage.ts b/web/src/api/storage.ts index d185885839..d238e9d92d 100644 --- a/web/src/api/storage.ts +++ b/web/src/api/storage.ts @@ -32,8 +32,8 @@ import { config } from "~/api/storage/types"; // eslint-disable-next-line @typescript-eslint/no-explicit-any const probe = (): Promise => post("/api/storage/probe"); -const fetchConfig = (): Promise => - get("/api/storage/config").then((config) => config.storage); +const fetchConfig = (): Promise => + get("/api/storage/config").then((config) => config.storage ?? null); /** * Returns the list of jobs diff --git a/web/src/components/core/InstallationFinished.tsx b/web/src/components/core/InstallationFinished.tsx index 598ed705ca..3a609043a6 100644 --- a/web/src/components/core/InstallationFinished.tsx +++ b/web/src/components/core/InstallationFinished.tsx @@ -79,6 +79,10 @@ const SuccessIcon = () =>