Skip to content

Commit

Permalink
fix grouping by fmu name
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubik committed Jan 9, 2025
1 parent 203cc0b commit ebe7bae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function DocumentsByOperator({ groupedByCategory, searchText, user, id, intl, ..
const FMUDocs = searchDocuments(groupedByCategory[category].filter(
(doc) => doc.type === 'operator-document-fmu-histories'
));
const FMUDocsByFMU = groupBy(sortBy(FMUDocs, 'fmu.name'), 'fmu.name');
const FMUDocsByFMU = groupBy(sortBy(FMUDocs, 'fmu.name'), (d) => d.fmu?.name);
const isCategoryOpen = categoriesOpen[category] || searchText?.length > 0;

return {
Expand Down

0 comments on commit ebe7bae

Please sign in to comment.