Skip to content

Commit

Permalink
prettier changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jagnathan committed Apr 28, 2023
1 parent f0e53f9 commit 0fd8d62
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/shared/components/query/QueryStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,12 @@ export class QueryStore {
return client
.getAllSamplesOfPatientInStudyUsingGET({ studyId, patientId })
.then(
samples => ({ studyId, patientId, samples, error: undefined }),
samples => ({
studyId,
patientId,
samples,
error: undefined,
}),
error => ({
studyId,
patientId,
Expand Down Expand Up @@ -1480,9 +1485,12 @@ export class QueryStore {
}

@computed get readPermissions(): Set<string> {
const studies = Array.from(this.treeData.map_node_meta.keys()).filter( s => typeof((s as CancerStudy).readPermission) !== 'undefined' );
const readPermissions = studies
.map(n => ((n as CancerStudy).readPermission).toString());
const studies = Array.from(this.treeData.map_node_meta.keys()).filter(
s => typeof (s as CancerStudy).readPermission !== 'undefined'
);
const readPermissions = studies.map(n =>
(n as CancerStudy).readPermission.toString()
);
return new Set(readPermissions);
}

Expand Down

0 comments on commit 0fd8d62

Please sign in to comment.