-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(web): fix TPM check when using the legacy AutoYaST mode (#1927)
## Problem When using the legacy AutoYaST mode, the web UI crashes at the end of the installation when trying to find our whether it is using TPM or not. - #1918 ## Solution Properly handle that case: * `fetchConfig` now returns `null` instead of `undefined`. According to [TanStack Query documentation](https://tanstack.com/query/latest/docs/framework/react/reference/useQuery), `queryFn` *Must return a promise that will either resolve data or throw an error. The data cannot be undefined*. * `usingTpm` function now handles the case where the configuration is `null`. ## Testing - *Tested manually*
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
------------------------------------------------------------------- | ||
Tue Jan 21 09:44:08 UTC 2025 - Imobach Gonzalez Sosa <[email protected]> | ||
|
||
- 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 <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters