Commit 783d8152 authored by Leigh B Stoller's avatar Leigh B Stoller

Fix to code handling missing profile description.

parent 21110f58
......@@ -112,13 +112,8 @@ function (_, sup, aboutaptString, aboutcloudString)
description = marked($(this).text());
});
});
if (!description) {
if (json.value.description != "") {
description = json.value.description;
}
else {
description = "Hmm, no description for this profile";
}
if (!description || description == "") {
description = "Hmm, no description for this profile";
}
$('#showtopo_description').html(description);
$('#selected_profile_description').html(description);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment