We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9c69c3 commit cfe5686Copy full SHA for cfe5686
packages/victory-core/src/victory-util/wrapper.tsx
@@ -437,8 +437,10 @@ export function getStringsFromChildren(props, childComponents) {
437
}
438
439
export function getCategories(props, childComponents, allStrings?) {
440
- const xPropCategories = Data.getStringsFromCategories(props, "x");
441
- const yPropCategories = Data.getStringsFromCategories(props, "y");
+ const xPropCategories =
+ props.categories && Data.getStringsFromCategories(props, "x");
442
+ const yPropCategories =
443
+ props.categories && Data.getStringsFromCategories(props, "y");
444
const fallbackRequired = !xPropCategories || !yPropCategories;
445
446
const fallbackProps = fallbackRequired
0 commit comments