Fix spurious logs about invalid MaxSizedBox children due to Ink6 + React19 migration (#2794)
This commit is contained in:
parent
01186e3aff
commit
2bf8e8b2c7
|
@ -278,7 +278,10 @@ function visitBoxRow(element: React.ReactNode): Row {
|
|||
// Allow the key prop, which is automatically added by React.
|
||||
maxExpectedProps += 1;
|
||||
}
|
||||
if (boxProps.flexDirection !== 'row') {
|
||||
if (
|
||||
boxProps.flexDirection !== undefined &&
|
||||
boxProps.flexDirection !== 'row'
|
||||
) {
|
||||
debugReportError(
|
||||
'MaxSizedBox children must have flexDirection="row".',
|
||||
element,
|
||||
|
|
Loading…
Reference in New Issue