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:
parent
785e80a6f4
commit
cde322befe
@ -259,7 +259,7 @@ export const EventForm: React.FC<EventFormProps> = ({ action, event, onError, on
|
|||||||
addOn={FormatLib.currencySymbol()} />
|
addOn={FormatLib.currencySymbol()} />
|
||||||
{priceCategoriesOptions && <div className="additional-prices">
|
{priceCategoriesOptions && <div className="additional-prices">
|
||||||
{fields.map((price, index) => (
|
{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}
|
<FormSelect options={priceCategoriesOptions}
|
||||||
control={control}
|
control={control}
|
||||||
id={`event_price_categories_attributes.${index}.price_category_id`}
|
id={`event_price_categories_attributes.${index}.price_category_id`}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user