mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +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()} />
|
||||
{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`}
|
||||
|
Loading…
x
Reference in New Issue
Block a user