Skip to content

Commit 8198460

Browse files
authored
fix: realtime reporter only set id on non null step.metaStep (#119)
1 parent f676da2 commit 8198460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codeceptjs/realtime-reporter.helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ class RealtimeReporterHelper extends Helper {
263263
if (!isEqualMetaStep(this.step.metaStep, this.metaStep)) {
264264
// append changed metastep to list
265265
// NOTE this.metaStep can be null which means "no metastep"
266-
this.step.metaStep.id = nanoid();
267266
if (this.step.metaStep) {
267+
this.step.metaStep.id = nanoid();
268268
wsEvents.rtr.metaStepChanged(this._mapMetaStep(this.step.metaStep, true));
269269
}
270270
this.metaStep = this.step.metaStep;

0 commit comments

Comments
 (0)