Skip to content

Commit

Permalink
code review rework
Browse files Browse the repository at this point in the history
  • Loading branch information
ssundahlTTD committed Oct 9, 2023
1 parent 0254555 commit 2aa9492
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/web/screens/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ function Home() {
const sharingList = await GetSharingList();
const manualSites = sharingList.allowed_sites;
const allowedTypes = sharingList.allowed_types;
const allowedTypeSet = new Set<ClientType>();
allowedTypes.forEach((item) => {
allowedTypeSet.add(item);
});
const allowedTypeSet = new Set<ClientType>(allowedTypes);
const siteList = await preloadAllSitesList();
const bulkSites = siteList.filter((item) => {
const clientTypes = item.clientTypes || [];
Expand Down

0 comments on commit 2aa9492

Please sign in to comment.