Skip to content

Commit 75737f2

Browse files
committed
fix: devtool constant value reference
1 parent f3dd9a4 commit 75737f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/common/src/templates/template.ts

Lines changed: 3 additions & 1 deletion
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)