Skip to content

Commit

Permalink
Fix type error in DSC to prevent crashing when operator first deployed
Browse files Browse the repository at this point in the history
  • Loading branch information
DaoDaoNoCode committed Oct 24, 2024
1 parent 3f5fe8d commit 9ade211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/concepts/areas/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const isAreaAvailable = (
const requiredComponentsState =
requiredComponents && dscStatus
? requiredComponents.reduce<IsAreaAvailableStatus['requiredComponents']>(
(acc, component) => ({ ...acc, [component]: dscStatus.installedComponents[component] }),
(acc, component) => ({ ...acc, [component]: dscStatus.installedComponents?.[component] }),
{},
)
: null;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/k8sTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1387,7 +1387,7 @@ export type DataScienceClusterKindStatus = {
};
};
conditions: K8sCondition[];
installedComponents: { [key in StackComponent]?: boolean };
installedComponents?: { [key in StackComponent]?: boolean };
phase?: string;
release?: {
name: string;
Expand Down

0 comments on commit 9ade211

Please sign in to comment.