Handle when id is null.

This will occur following the merger of
https://review.openstack.org/#/c/46869/

Change-Id: Id63e187ee14e9e14da800cc4a977c4016c5437de
This commit is contained in:
Alex Gaynor 2013-09-23 18:28:57 -07:00
parent 43bad50bea
commit 1259abdbec

View File

@ -154,7 +154,7 @@ function format_change(change) {
html += '<span class="project">' + change['project'] + '</span>';
var id = change['id'];
var url = change['url'];
if (id !== "None") {
if (id !== "None" && id !== null) {
if (id.length == 40) {
id = id.substr(0,7);
}