fix(offer-editor): show all services regardless of offer category
offer_macros.category ("Entry Offer") and services.category are different
taxonomies — filtering one by the other always returns empty. Remove the
client-side category filter; all active services are always shown.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -94,11 +94,7 @@ export function OfferEditorClient({
|
||||
const [initialArchived] = useState<boolean>(data.macro.is_archived);
|
||||
const [savedDraft, setSavedDraft] = useState(false);
|
||||
|
||||
const filteredServices = useMemo(() => {
|
||||
return macro.category
|
||||
? data.availableServices.filter((s) => s.category === macro.category)
|
||||
: data.availableServices;
|
||||
}, [macro.category, data.availableServices]);
|
||||
const filteredServices = data.availableServices;
|
||||
|
||||
// Totals use the full catalog (not filtered) so changing category doesn't zero them.
|
||||
const serviceById = useMemo(
|
||||
|
||||
Reference in New Issue
Block a user