Skip to content

Commit

Permalink
fix(ui): BundlePackages - get duplicate flag data from insights
Browse files Browse the repository at this point in the history
  • Loading branch information
vio committed Feb 29, 2020
1 parent 4843acf commit 980971c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const addDuplicateTag = (items, duplicatePackages) => items.map((item) => ({
export const enhance = compose(
withProps(({ jobs }) => {
const runs = jobs.map((job) => ({ meta: job }));
const duplicatePackages = jobs.map((job) => get(job, 'warnings.webpack.duplicatePackages'));
const duplicatePackages = Object.values(
get(jobs, '0.insights.webpack.duplicatePackages.data', {}),
).flat();

const items = addDuplicateTag(
webpack.compareBySection.packages(jobs),
Expand Down

0 comments on commit 980971c

Please sign in to comment.