From 937a1a1e2456d885dd05c0fc193b9f2d8e02af6b Mon Sep 17 00:00:00 2001 From: github-automatic-chores Date: Tue, 4 Jun 2024 12:12:14 +0000 Subject: [PATCH] automatic chores: linting [skip-ci] This is a commit done by the GitHub action https://github.com/Puzzlepart/prosjektportalen365/blob/releases/1.9/.github/workflows/automatic_chores.yml. --- SharePointFramework/PortfolioWebParts/src/data/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SharePointFramework/PortfolioWebParts/src/data/index.ts b/SharePointFramework/PortfolioWebParts/src/data/index.ts index 6a03599af..96efa54cd 100644 --- a/SharePointFramework/PortfolioWebParts/src/data/index.ts +++ b/SharePointFramework/PortfolioWebParts/src/data/index.ts @@ -342,7 +342,9 @@ export class DataAdapter implements IPortfolioWebPartsDataAdapter { ]) projects = projects.map((item) => cleanDeep({ ...item })) sites = sites.map((item) => cleanDeep({ ...item })) - statusReports = statusReports.sort((a, b) => b['ListItemId'] - a['ListItemId']).map((item) => cleanDeep({ ...item })) + statusReports = statusReports + .sort((a, b) => b['ListItemId'] - a['ListItemId']) + .map((item) => cleanDeep({ ...item })) sites = sites.filter( (site) => projects.filter((res) => res[siteIdProperty] === site['SiteId']).length === 1 )