Skip to content

Commit 38d426d

Browse files
fix: devtool constant value reference (#2789)
fix: devtool constant value reference
2 parents f3dd9a4 + 75737f2 commit 38d426d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: packages/common/src/templates/template.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ const CLIENT_VIEWS: ViewConfig[] = [
6767
];
6868

6969
// React sandboxes have an additional devtool on top of CLIENT_VIEWS
70-
const REACT_CLIENT_VIEWS: ViewConfig[] = [...CLIENT_VIEWS];
70+
const REACT_CLIENT_VIEWS: ViewConfig[] = JSON.parse(
71+
JSON.stringify(CLIENT_VIEWS)
72+
);
7173
REACT_CLIENT_VIEWS[1].views.push({ id: 'codesandbox.react-devtools' });
7274

7375
const SERVER_VIEWS: ViewConfig[] = [

0 commit comments

Comments
 (0)