hz-field-directive handle no value property
hz-field-directive was developed using hz images panel where every single property had at least the no value filter applied. However, when using it with properties that don't have the no value filter applied and there is no value, we'll see the following in console.log angular.js:12783 TypeError: Cannot read property 'then' of undefined Change-Id: I14f8d56cc9086e7e25e11c081de34bc9d21389d0 Closes-Bug: #1614630
This commit is contained in:
parent
47b0f5b927
commit
210d420749
|
@ -112,7 +112,7 @@
|
|||
var propValue = item[config.id];
|
||||
var output = applyFilters(config, propValue);
|
||||
|
||||
if (output.then) {
|
||||
if (output && output.then) {
|
||||
//Last filter was a promise, resolve it and then finish output.
|
||||
output.then(postFilterFormatting);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue