diff --git a/CHANGELOG.md b/CHANGELOG.md index 533bfa184..9d00b584a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Next release +## v6.3.47 2025 Avril 1 + +- Fix a bug: unable to hide machine/space deleted in price of plan + ## v6.3.46 2025 March 31 - Fix a bug: unable to cancel stripe subscription canceled diff --git a/app/frontend/src/javascript/components/plans/plan-pricing-form.tsx b/app/frontend/src/javascript/components/plans/plan-pricing-form.tsx index 247b9b60b..b9d2dab39 100644 --- a/app/frontend/src/javascript/components/plans/plan-pricing-form.tsx +++ b/app/frontend/src/javascript/components/plans/plan-pricing-form.tsx @@ -71,7 +71,7 @@ export const PlanPricingForm = ({ register, control, fo const renderPriceElement = (price: Price, index: number) => { const item: Space | Machine = (price.priceable_type === 'Machine' && machines?.find(m => m.id === price.priceable_id)) || (price.priceable_type === 'Space' && spaces?.find(s => s.id === price.priceable_id)); - if (!item?.disabled) { + if (item && !item.disabled) { return (