Skip to content

Commit 7e751fc

Browse files
authored
Sync: remove untouched condition (#6354)
The code after `||` will not be touched since we have changed our "userViewBox" logic in this selector. Removed it.
1 parent afef201 commit 7e751fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tensorboard/webapp/metrics/store/metrics_store_internal_utils.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,7 @@ export function getMinMaxStepFromCardState(cardState: Partial<CardState>) {
584584

585585
const minStep = x[0] < x[1] ? x[0] : x[1];
586586
const maxStep = minStep === x[0] ? x[1] : x[0];
587-
return (
588-
{minStep: Math.ceil(minStep), maxStep: Math.floor(maxStep)} || dataMinMax
589-
);
587+
return {minStep: Math.ceil(minStep), maxStep: Math.floor(maxStep)};
590588
}
591589

592590
export function getCardSelectionStateToBoolean(

0 commit comments

Comments
 (0)