community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1864116 - in /comdev/reporter.apache.org/trunk/site/wizard/js: source/generators.js wizard.js
Date Thu, 01 Aug 2019 05:31:48 GMT
Author: humbedooh
Date: Thu Aug  1 05:31:48 2019
New Revision: 1864116

URL: http://svn.apache.org/viewvc?rev=1864116&view=rev
Log:
tweak test

Modified:
    comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
    comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864116&r1=1864115&r2=1864116&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Thu Aug  1 05:31:48
2019
@@ -117,7 +117,7 @@ function generate_meta(data) {
     // Previous comments of note?
     let cdates = Object.keys(comments.comments);
     cdates.sort();
-    if (comments && cdates) {
+    if (comments && cdates.length > 0) {
       txt += "<hr/><h6>Last report comments from the board: </h6>";
       txt += "<b>%s:</b><br/><pre>%s</pre>".format(cdates[cdates.length-1],
comments.comments[cdates[cdates.length-1]]);
     }

Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864116&r1=1864115&r2=1864116&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original)
+++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Thu Aug  1 05:31:48 2019
@@ -1105,7 +1105,7 @@ function generate_meta(data) {
     // Previous comments of note?
     let cdates = Object.keys(comments.comments);
     cdates.sort();
-    if (comments && cdates) {
+    if (comments && cdates.length > 0) {
       txt += "<hr/><h6>Last report comments from the board: </h6>";
       txt += "<b>%s:</b><br/><pre>%s</pre>".format(cdates[cdates.length-1],
comments.comments[cdates[cdates.length-1]]);
     }



Mime
View raw message