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:
2026-06-18 18:35:37 +02:00
parent 4f7e0033c4
commit 27e8706e39
@@ -94,11 +94,7 @@ export function OfferEditorClient({
const [initialArchived] = useState<boolean>(data.macro.is_archived); const [initialArchived] = useState<boolean>(data.macro.is_archived);
const [savedDraft, setSavedDraft] = useState(false); const [savedDraft, setSavedDraft] = useState(false);
const filteredServices = useMemo(() => { const filteredServices = data.availableServices;
return macro.category
? data.availableServices.filter((s) => s.category === macro.category)
: data.availableServices;
}, [macro.category, data.availableServices]);
// Totals use the full catalog (not filtered) so changing category doesn't zero them. // Totals use the full catalog (not filtered) so changing category doesn't zero them.
const serviceById = useMemo( const serviceById = useMemo(