1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-19 08:52:25 +01:00

(bug) unable to add event price

This commit is contained in:
Sylvain 2022-12-22 13:42:41 +01:00
parent 785e80a6f4
commit cde322befe

View File

@ -259,7 +259,7 @@ export const EventForm: React.FC<EventFormProps> = ({ action, event, onError, on
addOn={FormatLib.currencySymbol()} />
{priceCategoriesOptions && <div className="additional-prices">
{fields.map((price, index) => (
<div key={index} className={`price-item ${output.event_price_categories_attributes[index]?._destroy ? 'destroyed-item' : ''}`}>
<div key={index} className={`price-item ${output.event_price_categories_attributes && output.event_price_categories_attributes[index]?._destroy ? 'destroyed-item' : ''}`}>
<FormSelect options={priceCategoriesOptions}
control={control}
id={`event_price_categories_attributes.${index}.price_category_id`}