fix search for segments, fix hooks endpoint for cohorts
This commit is contained in:
@@ -11,7 +11,7 @@ export function RevenuePage({ websiteId }: { websiteId: string }) {
|
||||
|
||||
return (
|
||||
<Column gap>
|
||||
<WebsiteControls websiteId={websiteId} allowFilter={false} />
|
||||
<WebsiteControls websiteId={websiteId} />
|
||||
<Revenue websiteId={websiteId} startDate={startDate} endDate={endDate} />
|
||||
</Column>
|
||||
);
|
||||
|
||||
@@ -19,7 +19,7 @@ export function CohortDeleteButton({
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { del, useMutation } = useApi();
|
||||
const { mutate, isPending, error } = useMutation({
|
||||
mutationFn: () => del(`/websites/${websiteId}/cohorts/${cohortId}`),
|
||||
mutationFn: () => del(`/websites/${websiteId}/segments/${cohortId}`),
|
||||
});
|
||||
const { touch } = useModified();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user