Skip to content

Commit fec0662

Browse files
authored
Merge pull request #1012 from C2DH/1010-bugarticle-maximum-call-stack-size-exceeded-error-in-article-preview
#1010: fix Maximum call stack size exceeded error
2 parents 0777d58 + 8cc9b2f commit fec0662

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Article/ArticleCellOutputsAsIframe.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const ArticleCellOutputsAsIframe = ({
5858
// text/html
5959
if (output.data['text/html']) {
6060
if (Array.isArray(output.data['text/html'])) {
61-
acc.push(...output.data['text/html'])
61+
acc = acc.concat(output.data['text/html']);
6262
} else {
6363
acc.push(output.data['text/html'])
6464
}

0 commit comments

Comments
 (0)