Skip to content

Commit

Permalink
Dont assume mifration is owned
Browse files Browse the repository at this point in the history
Signed-off-by: yzamir <[email protected]>
  • Loading branch information
yaacov committed Mar 28, 2024
1 parent 1f176a0 commit fe36ce7
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 fe36ce7

Please sign in to comment.