Skip to content

Commit 466251c

Browse files
committed
dry
1 parent a8b10d4 commit 466251c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/lib/unpackPlotProps.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,9 @@ export default function unpackPlotProps(props, context, wrappedComponent) {
123123
multiValued = true;
124124
}
125125

126-
let isVisible;
127-
if (hasValidCustomConfigVisibilityRules(customConfig)) {
128-
isVisible =
129-
computeCustomConfigVisibility(props, fullValue, customConfig, wrappedComponent) &&
130-
Boolean(hasFullValue(fullValue) || props.show);
131-
} else {
132-
isVisible = Boolean(hasFullValue(fullValue) || props.show);
126+
let isVisible = Boolean(hasFullValue(fullValue) || props.show);
127+
if (isVisible && hasValidCustomConfigVisibilityRules(customConfig)) {
128+
isVisible = computeCustomConfigVisibility(props, fullValue, customConfig, wrappedComponent);
133129
}
134130

135131
let defaultValue = props.defaultValue;

0 commit comments

Comments
 (0)