Skip to content

Commit d73db6a

Browse files
authored
Merge pull request #1761 from OpenAF/t8
T8
2 parents 45c00ae + aec27c6 commit d73db6a

4 files changed

Lines changed: 7 additions & 3 deletions

File tree

js/owrap.template.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,11 @@ OpenWrap.template.prototype.addOpenAFHelpers = function() {
232232
return s;
233233
}
234234

235-
if (!Array.isArray(headers) || !Array.isArray(rows)) return "";
235+
if (!Array.isArray(headers)) return ""
236+
if (!Array.isArray(rows)) {
237+
rows = headers
238+
headers = Object.keys(rows[0] || {})
239+
}
236240

237241
// Header line
238242
var headerLine = "| " + headers.map(_escapeCell).join(" | ") + " |";
200 KB
Binary file not shown.
33.2 KB
Binary file not shown.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
260260
<dependency>
261261
<groupId>org.eclipse.jetty.websocket</groupId>
262262
<artifactId>jetty-websocket-jetty-common</artifactId>
263-
<version>12.1.6</version>
263+
<version>12.1.7</version>
264264
</dependency>
265265
<dependency>
266266
<groupId>org.eclipse.jetty.websocket</groupId>
@@ -280,7 +280,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
280280
<dependency>
281281
<groupId>org.eclipse.jetty.websocket</groupId>
282282
<artifactId>jetty-websocket-core-common</artifactId>
283-
<version>12.1.6</version>
283+
<version>12.1.7</version>
284284
</dependency>
285285
<dependency>
286286
<groupId>jline</groupId>

0 commit comments

Comments
 (0)