Skip to content

Commit

Permalink
fix: realtime reporter only set id on non null step.metaStep (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiroid authored Jan 23, 2021
1 parent f676da2 commit 8198460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/codeceptjs/realtime-reporter.helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ class RealtimeReporterHelper extends Helper {
if (!isEqualMetaStep(this.step.metaStep, this.metaStep)) {
// append changed metastep to list
// NOTE this.metaStep can be null which means "no metastep"
this.step.metaStep.id = nanoid();
if (this.step.metaStep) {
this.step.metaStep.id = nanoid();
wsEvents.rtr.metaStepChanged(this._mapMetaStep(this.step.metaStep, true));
}
this.metaStep = this.step.metaStep;
Expand Down

0 comments on commit 8198460

Please # to comment.