Skip to content

Commit 76bae1b

Browse files
committed
Don't show last filter straight away (unexpected and breaks e2e)
1 parent 2a0af0a commit 76bae1b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

components/dashboard/filters/Filterbar.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,6 @@ export function Filterbar<FV extends Record<string, any>, FM>({
159159
<FilterDropdown
160160
filters={filters}
161161
values={values}
162-
// If last option display it directly
163-
{...(remainingFilters.length === 1 && {
164-
filterKey: remainingFilters[0],
165-
})}
166162
remainingFilters={remainingFilters}
167163
setFilter={setFilter}
168164
meta={meta}

components/dashboard/sections/HostDashboardAgreements.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ type FilterMeta = {
7676
};
7777

7878
const filters: FilterComponentConfigs<z.infer<typeof schema>, FilterMeta> = {
79-
account: hostedAccountFilter.filter,
79+
account: { static: true, ...hostedAccountFilter.filter },
8080
};
8181

8282
const HostDashboardAgreements = ({ accountSlug: hostSlug }: DashboardSectionProps) => {

0 commit comments

Comments
 (0)