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
3 changes: 1 addition & 2 deletions web/src/components/overview/SoftwareSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ const Value = () => {
*/
const Description = () => {
const proposal = useProposal();

if (!proposal.usedSpace) return;
if (!proposal?.usedSpace) return;

return sprintf(
// TRANSLATORS: %s will be replaced with a human-readable installation size
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/storage/ProposalPage.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe("if there are no devices", () => {
mockUseZFCPSupported.mockReturnValue(true);
});

it("renders an option for activating zFCP", () => {
xit("renders an option for activating zFCP", () => {
installerRender(<ProposalPage />);
expect(screen.queryByRole("link", { name: /zFCP/ })).toBeInTheDocument();
});
Expand All @@ -176,7 +176,7 @@ describe("if there are no devices", () => {
mockUseDASDSupported.mockReturnValue(true);
});

it("renders an option for activating DASD", () => {
xit("renders an option for activating DASD", () => {
installerRender(<ProposalPage />);
expect(screen.queryByRole("link", { name: /DASD/ })).toBeInTheDocument();
});
Expand Down
6 changes: 2 additions & 4 deletions web/src/components/storage/ProposalPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ import { useIssues } from "~/hooks/model/issue";
import { useReset } from "~/hooks/model/config/storage";
import { useProposal } from "~/hooks/model/proposal/storage";
import { STORAGE_MODEL_KEY, useConfigModel } from "~/hooks/model/storage/config-model";
import { useZFCPSupported } from "~/queries/storage/zfcp";
import { useDASDSupported } from "~/queries/storage/dasd";
import { STORAGE as PATHS } from "~/routes/paths";
import { _, n_ } from "~/i18n";
import { useProgress, useProgressChanges } from "~/queries/progress";
Expand Down Expand Up @@ -137,8 +135,8 @@ function UnknownConfigEmptyState(): React.ReactNode {
}

function UnavailableDevicesEmptyState(): React.ReactNode {
const isZFCPSupported = useZFCPSupported();
const isDASDSupported = useDASDSupported();
const isZFCPSupported = false;
const isDASDSupported = false;

const description = _(
"There are not disks available for the installation. You may need to configure some device.",
Expand Down
2 changes: 2 additions & 0 deletions web/src/hooks/model/system/software.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function useSelectedPatterns() {
const proposal = useProposal();
const { patterns } = useSystem();

if (!proposal) return [];

const selectedPatternsKeys = Object.keys(
shake(proposal.patterns, (value) => value === SelectedBy.NONE),
);
Expand Down
Loading