Skip to content

Commit

Permalink
fix: Error if the text filter does not find any scenarios. [#292]
Browse files Browse the repository at this point in the history
  • Loading branch information
abayarri committed Sep 20, 2024
1 parent 61cf39e commit dfd1f07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions plugins/html-report-wakamiti-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog][1],
and this project adheres to [Semantic Versioning][2].


## [unreleased]

### Fixed
- Error if the text filter does not find any scenarios.


## [2.6.0] - 2024-09-09

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion plugins/html-report-wakamiti-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


<artifactId>html-report-wakamiti-plugin</artifactId>
<version>2.6.0</version>
<version>2.6.1-SNAPSHOT</version>

<name>[Wakamiti Plugin] HTML Report</name>
<description>HTML Report generator for Wakamiti results</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ function generateContent(e) {
const el = document.getElementById(e.data.uuid); // mustache element
const container = document.createElement("div");

if (e.data.value.c.length > 0) {
if (e.data.value.c?.length > 0) {
e.data.value.c.forEach((c) => {
container.innerHTML = Mustache.render(window.templates[e.data.id], Object.assign(c || {}, {
isAggregator: function(){ return this.t === 'AGGREGATOR' },
Expand Down

0 comments on commit dfd1f07

Please sign in to comment.