Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Trekky12 committed Sep 17, 2024
1 parent aa8898a commit d1b60b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
7 changes: 4 additions & 3 deletions web/apps/photos/src/components/ExportModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ export default function ExportModal(props: Props) {
});
setIncludeShared(newIncludeShared);

const exportRecord =
await exportService.getExportRecord(exportFolder);
const exportRecord = await exportService.getExportRecord(exportFolder);
const pendingExports =
await exportService.getPendingExports(exportRecord);
setPendingExports(pendingExports);
Expand Down Expand Up @@ -262,7 +261,9 @@ function IncludeShared({ exportStage, includeShared, toggleIncludeShared }) {
case ExportStage.FINISHED:
return (
<SpaceBetweenFlex minHeight={"48px"}>
<Typography color="text.muted">{t("INCLUDE_SHARED")}</Typography>
<Typography color="text.muted">
{t("INCLUDE_SHARED")}
</Typography>
<Box>
<EnteSwitch
color="accent"
Expand Down
16 changes: 6 additions & 10 deletions web/apps/photos/src/services/export/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,9 @@ class ExportService {
);

const includeShared = this.getExportSettings()?.includeShared;
const userPersonalFiles = includeShared ? files : getPersonalFiles(
files,
user,
collectionIdToOwnerIDMap,
);
const userPersonalFiles = includeShared
? files
: getPersonalFiles(files, user, collectionIdToOwnerIDMap);

const unExportedFiles = getUnExportedFiles(
userPersonalFiles,
Expand Down Expand Up @@ -352,11 +350,9 @@ class ExportService {
);

const includeShared = this.getExportSettings()?.includeShared;
const personalFiles = includeShared ? files : getPersonalFiles(
files,
user,
collectionIdToOwnerIDMap,
);
const personalFiles = includeShared
? files
: getPersonalFiles(files, user, collectionIdToOwnerIDMap);

const nonEmptyPersonalCollections = getNonEmptyPersonalCollections(
collections,
Expand Down

0 comments on commit d1b60b7

Please sign in to comment.