Skip to content

Commit 9646de3

Browse files
authored
Remove redundant usage of nullish coalescing operator (#6906)
## Motivation for features / changes This throws errors when using TypeScript 5.6. See cl/671116520
1 parent b9ab242 commit 9646de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorboard/webapp/metrics/store/metrics_reducers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ const reducer = createReducer(
716716
if (state.tagGroupExpanded.size === 0) {
717717
const cardListWithMetadata = nextCardList
718718
.map((cardId) => {
719-
return {...newCardMetadataMap[cardId], cardId} ?? null;
719+
return {...newCardMetadataMap[cardId], cardId};
720720
})
721721
.filter(Boolean);
722722
const cardGroups = groupCardIdWithMetdata(cardListWithMetadata);

0 commit comments

Comments
 (0)