Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions web/package/agama-web-ui.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 24 10:17:30 UTC 2025 - Imobach Gonzalez Sosa <igonzalezsosa@suse.com>

- Properly handle empty lists of unsupported AutoYaST elements
(gh#agama-project/agama#2196).

-------------------------------------------------------------------
Sun Mar 23 02:13:56 UTC 2025 - David Diaz <dgonzalez@suse.com>

Expand Down
4 changes: 2 additions & 2 deletions web/src/components/questions/UnsupportedAutoYaST.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ describe("UnsupportedAutoYaST", () => {

describe("when there are no unsupported (but planned) elements", () => {
beforeEach(() => {
mockQuestion = { ...question, data: {} };
mockQuestion = { ...question, data: { planned: "" } };
});

it('does not render the "Not implemented yet" list', () => {
Expand All @@ -75,7 +75,7 @@ describe("UnsupportedAutoYaST", () => {

describe("when there are no unsupported (but planned) elements", () => {
beforeEach(() => {
mockQuestion = { ...question, data: {} };
mockQuestion = { ...question, data: { unsupported: "" } };
});

it('does not render the "Not supported" list', () => {
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/questions/UnsupportedAutoYaST.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ export default function UnsupportedAutoYaST({
answerCallback(question);
};

const planned = question.data.planned?.split(",") || [];
const unsupported = question.data.unsupported?.split(",") || [];
const planned = question.data.planned ? question.data.planned.split(",") : [];
const unsupported = question.data.unsupported ? question.data.unsupported.split(",") : [];

return (
<Popup isOpen title={_("Unsupported AutoYaST elements")}>
Expand Down