Skip to content

Commit 83db4c8

Browse files
committed
Add isBinary field to diff for SSE
1 parent 5ce2475 commit 83db4c8

File tree

1 file changed

+3
-0
lines changed
  • packages/app/src/app/components/Preview

1 file changed

+3
-0
lines changed

packages/app/src/app/components/Preview/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const getDiff = (a, b) => {
7676
diff[p] = {
7777
code: b[p].code,
7878
path: p,
79+
isBinary: b[p].isBinary,
7980
};
8081
});
8182

@@ -500,6 +501,7 @@ class BasePreview extends React.Component<Props, State> {
500501
modulesObject[path] = {
501502
path,
502503
code: m.code,
504+
isBinary: m.isBinary,
503505
};
504506
}
505507
});
@@ -511,6 +513,7 @@ class BasePreview extends React.Component<Props, State> {
511513
modulesToSend['/package.json'] = {
512514
code: generateFileFromSandbox(sandbox),
513515
path: '/package.json',
516+
isBinary: false,
514517
};
515518
}
516519

0 commit comments

Comments
 (0)