Skip to content

Commit

Permalink
Merge pull request #1040 from yaacov/migration-with-no-owner
Browse files Browse the repository at this point in the history
 🐞 migrations may not have an owner
  • Loading branch information
yaacov authored Mar 28, 2024
2 parents 1f176a0 + fe36ce7 commit aa84284
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const MigrationVirtualMachinesList: FC<{ obj: PlanData }> = ({ obj }) =>

const planMigrations = (
migrations && migrationLoaded && !migrationLoadError ? migrations : []
).filter((m) => m.metadata.ownerReferences[0].uid === plan.metadata.uid);
).filter((m) => m?.metadata?.ownerReferences?.[0]?.uid === plan.metadata.uid);

planMigrations?.sort(
(a, b) =>
Expand Down

0 comments on commit aa84284

Please sign in to comment.