summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Richman <[email protected]>2025-06-24 21:38:25 +0000
committerGitHub <[email protected]>2025-06-24 21:38:25 +0000
commit5ff00b0c5d30c3106e7f22dc9db6e7a43fc75c78 (patch)
tree09b74a91ea6c49078b1ce34131f3840bb5d25dc0
parent75ed7aaa064e497df81e6aabc8025c5688580da4 (diff)
Remove uses of the spread operator that appear to have caused a maximum call stack size exceeded error (#1389)
-rw-r--r--packages/cli/src/ui/components/shared/MaxSizedBox.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/cli/src/ui/components/shared/MaxSizedBox.tsx b/packages/cli/src/ui/components/shared/MaxSizedBox.tsx
index ced33a37..cd31ff04 100644
--- a/packages/cli/src/ui/components/shared/MaxSizedBox.tsx
+++ b/packages/cli/src/ui/components/shared/MaxSizedBox.tsx
@@ -408,7 +408,9 @@ function layoutInkElementAsStyledText(
) {
lines.push(currentLine);
}
- output.push(...lines);
+ for (const line of lines) {
+ output.push(line);
+ }
return;
}
@@ -524,5 +526,7 @@ function layoutInkElementAsStyledText(
if (wrappingPart.length > 0) {
addWrappingPartToLines();
}
- output.push(...lines);
+ for (const line of lines) {
+ output.push(line);
+ }
}