Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis SMAIL committed Feb 5, 2025
1 parent 39ed424 commit a136c5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/App/Studies/StudyTree/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ export function mergeDeepRightStudyTree(left: StudyTreeNode, right: StudyTreeNod
* @returns list of tuples where the first element is from the left list and the second element is from the right list.
*/
export function innerJoin(
left: StudyTreeNode[],
right: StudyTreeNode[],
): [StudyTreeNode, StudyTreeNode][] {
left: Array<StudyTreeNode>,

Check failure on line 311 in webapp/src/components/App/Studies/StudyTree/utils.ts

View workflow job for this annotation

GitHub Actions / npm-lint

Array type using 'Array<StudyTreeNode>' is forbidden for simple types. Use 'StudyTreeNode[]' instead
right: Array<StudyTreeNode>,

Check failure on line 312 in webapp/src/components/App/Studies/StudyTree/utils.ts

View workflow job for this annotation

GitHub Actions / npm-lint

Array type using 'Array<StudyTreeNode>' is forbidden for simple types. Use 'StudyTreeNode[]' instead
): Array<[StudyTreeNode, StudyTreeNode]> {
return left.reduce<[StudyTreeNode, StudyTreeNode][]>((acc, leftNode) => {

Check failure on line 314 in webapp/src/components/App/Studies/StudyTree/utils.ts

View workflow job for this annotation

GitHub Actions / npm-lint

Array type using 'T[]' is forbidden for non-simple types. Use 'Array<T>' instead
const matchedRightNode = right.find((rightNode) => rightNode.name === leftNode.name);
if (matchedRightNode) {
Expand Down

0 comments on commit a136c5a

Please sign in to comment.