Skip to content

Commit

Permalink
Remove redundant usage of nullish coalescing operator (#6906)
Browse files Browse the repository at this point in the history
## Motivation for features / changes
This throws errors when using TypeScript 5.6.

See cl/671116520
  • Loading branch information
rileyajones authored Sep 6, 2024
1 parent b9ab242 commit 9646de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorboard/webapp/metrics/store/metrics_reducers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ const reducer = createReducer(
if (state.tagGroupExpanded.size === 0) {
const cardListWithMetadata = nextCardList
.map((cardId) => {
return {...newCardMetadataMap[cardId], cardId} ?? null;
return {...newCardMetadataMap[cardId], cardId};
})
.filter(Boolean);
const cardGroups = groupCardIdWithMetdata(cardListWithMetadata);
Expand Down

0 comments on commit 9646de3

Please sign in to comment.