Skip to content

Commit e049da1

Browse files
committed
Fix test adding
1 parent 403bc8f commit e049da1

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,10 @@ class Tests extends React.Component<Props, State> {
233233

234234
this.setState(
235235
immer(this.state, state => {
236-
if (!state.files[data.path]) {
237-
state.files[data.path] = {
236+
if (!state.files[test.path]) {
237+
state.files[test.path] = {
238238
tests: {},
239-
fileName: data.path,
239+
fileName: test.path,
240240
};
241241
}
242242

0 commit comments

Comments
 (0)