Skip to content

Commit

Permalink
fix(ui): BundleModules - keep metric type when changing other filters
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Mar 22, 2024
1 parent 8a9cc1a commit cf86554
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/ui/src/components/bundle-modules/bundle-modules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ const RowHeader = (props: RowHeaderProps) => {
return (
<CustomComponentLink
section={SECTIONS.MODULES}
params={{ [COMPONENT.BUNDLE_MODULES]: { filters, search, entryId: row.key, moduleMetric } }}
params={{
[COMPONENT.BUNDLE_MODULES]: { filters, search, entryId: row.key, metric: moduleMetric },
}}
className={css.name}
>
{row.duplicated && (
Expand Down Expand Up @@ -132,7 +134,7 @@ export const BundleModules = (props: BundleModulesProps) => {
customComponentLink={CustomComponentLink}
/>
),
[jobs, chunks, CustomComponentLink, filters, search],
[jobs, chunks, CustomComponentLink, filters, search, moduleMetric],
);

const emptyMessage = useMemo(
Expand Down

0 comments on commit cf86554

Please sign in to comment.