diff --git a/web/package/agama-web-ui.changes b/web/package/agama-web-ui.changes index c80b3b44ca..534c036d61 100644 --- a/web/package/agama-web-ui.changes +++ b/web/package/agama-web-ui.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 29 10:26:49 UTC 2026 - Imobach Gonzalez Sosa + +- Do not crash when selecting a pattern (gh#agama-project/agama#3097, + bsc#1257454). + ------------------------------------------------------------------- Wed Jan 28 12:43:13 UTC 2026 - Imobach Gonzalez Sosa diff --git a/web/src/components/software/SoftwarePatternsSelection.tsx b/web/src/components/software/SoftwarePatternsSelection.tsx index 88763f76e6..9e9437871e 100644 --- a/web/src/components/software/SoftwarePatternsSelection.tsx +++ b/web/src/components/software/SoftwarePatternsSelection.tsx @@ -107,7 +107,8 @@ const NoMatches = (): React.ReactNode => {_("None of the patterns match the f */ function SoftwarePatternsSelection(): React.ReactNode { const { patterns } = useSystem(); - const { patterns: selection } = useProposal(); + const proposal = useProposal(); + const selection = proposal?.patterns || []; const [searchValue, setSearchValue] = useState(""); const onToggle = (name: string, selected: boolean) => {