Skip to content

Commit

Permalink
Don't display empty or null framework descriptions #335
Browse files Browse the repository at this point in the history
  • Loading branch information
miledivovic committed Jul 12, 2018
1 parent ec8a2a7 commit 7434efb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion js/cass/cass-editor.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion js/viewFramework.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ populateFramework = function (subsearch) {
frameworkDescription = EcArray.isArray(frameworkDescription) ? frameworkDescription : [frameworkDescription];
$("#editFrameworkSection #frameworkDescription").children().remove();
for (var i in frameworkDescription) {
$("#editFrameworkSection #frameworkDescription").append($('<span>' + frameworkDescription[i] + '</span>'));
if (frameworkDescription[i] != null && frameworkDescription[i] != 'NULL' && frameworkDescription[i] != '')
$("#editFrameworkSection #frameworkDescription").append($('<span>' + frameworkDescription[i] + '</span>'));
}
try {
if (framework.getTimestamp() == null || isNaN(framework.getTimestamp()))
Expand Down

0 comments on commit 7434efb

Please sign in to comment.