Skip to content

Commit

Permalink
Rétabli la possibilité de créer un nouveau plan d'action (quand aucun…
Browse files Browse the repository at this point in the history
… plan n'existe déjà)
  • Loading branch information
marc-rutkowski committed Oct 30, 2023
1 parent e3317d9 commit 1169711
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const planNodeFactory = ({
parentDepth,
nom,
}: PlanNodeFactory): PlanNode => {
const lowerId = axes.reduce((a, b) => (a.id! < b.id! ? a : b)).id;
const lowerId = axes?.reduce((a, b) => (a.id! < b.id! ? a : b), {id: 0}).id;
const tempId = Math.min(0, lowerId || 0) - 1;

return {
Expand Down

0 comments on commit 1169711

Please sign in to comment.