Change-Id: I05cf735bdb50bc5b0daa3f88cce0a017a96a7239
Signed-off-by: Koren Lev <korenlev@gmail.com>
link_types: {
type: [String],
minCount: 1,
+ defaultValue: [],
custom: function () {
let that = this;
let findResult = R.all(function (pLinkType) {
<div class="sm-field-group-link-types cl-field-group">
<label class="cl-field-label">Link Types</label>
- {{#if (getModelField 'link_types') }}
+ {{#if (exists (getModelField 'link_types')) }}
{{>SelectableOrderedInput (argsLinkTypesInput linkTypesList (getModelField 'link_types')) }}
{{/if }}
<div class="cl-field-desc">Link Types</div>
},
};
},
+
+ exists: function (val) {
+ return ! R.isNil(val);
+ }
}); // end: helpers
function initInsertView(instance, query) {