mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
Fix spurious logs about invalid MaxSizedBox children due to Ink6 + React19 migration (#2794)
This commit is contained in:
@@ -278,7 +278,10 @@ function visitBoxRow(element: React.ReactNode): Row {
|
|||||||
// Allow the key prop, which is automatically added by React.
|
// Allow the key prop, which is automatically added by React.
|
||||||
maxExpectedProps += 1;
|
maxExpectedProps += 1;
|
||||||
}
|
}
|
||||||
if (boxProps.flexDirection !== 'row') {
|
if (
|
||||||
|
boxProps.flexDirection !== undefined &&
|
||||||
|
boxProps.flexDirection !== 'row'
|
||||||
|
) {
|
||||||
debugReportError(
|
debugReportError(
|
||||||
'MaxSizedBox children must have flexDirection="row".',
|
'MaxSizedBox children must have flexDirection="row".',
|
||||||
element,
|
element,
|
||||||
|
|||||||
Reference in New Issue
Block a user