chore(prettier): full repo linting and code reformatting once and for all (#3627)
This commit is contained in:
1 parent
01500a2d4c
commit
9045ddaedc
656 files changed
+21737
-20628
No files matched your search
@@ -1,4 +1,2 @@
|
||||
export default (study, extraData) =>
|
||||
Math.max(
|
||||
...(extraData?.displaySets?.map?.(ds => ds.numImageFrames ?? 0) || [0])
|
||||
);
|
||||
Math.max(...(extraData?.displaySets?.map?.(ds => ds.numImageFrames ?? 0) || [0]));
|
||||
@@ -6,7 +6,7 @@
|
||||
* `sameDisplaySetId` as the display set id to look for
|
||||
* From `options`, it looks for
|
||||
*/
|
||||
export default function(displaySet, options) {
|
||||
export default function (displaySet, options) {
|
||||
const { sameAttribute, sameDisplaySetId } = this;
|
||||
if (!sameAttribute) {
|
||||
console.log('sameAttribute not defined in', this);
|
||||
@@ -23,16 +23,9 @@ export default function(displaySet, options) {
|
||||
return false;
|
||||
}
|
||||
const { displaySetInstanceUID } = match;
|
||||
const altDisplaySet = displaySets.find(
|
||||
it => it.displaySetInstanceUID == displaySetInstanceUID
|
||||
);
|
||||
const altDisplaySet = displaySets.find(it => it.displaySetInstanceUID == displaySetInstanceUID);
|
||||
if (!altDisplaySet) {
|
||||
console.log(
|
||||
'No display set found with',
|
||||
displaySetInstanceUID,
|
||||
'in',
|
||||
displaySets
|
||||
);
|
||||
console.log('No display set found with', displaySetInstanceUID, 'in', displaySets);
|
||||
return false;
|
||||
}
|
||||
const testValue = altDisplaySet[sameAttribute];
|
||||
|
||||
Reference in new issue
Block a user