aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/imports/api/clique-types/clique-types.js1
-rw-r--r--ui/imports/ui/components/clique-type/clique-type.html2
-rw-r--r--ui/imports/ui/components/clique-type/clique-type.js4
3 files changed, 6 insertions, 1 deletions
diff --git a/ui/imports/api/clique-types/clique-types.js b/ui/imports/api/clique-types/clique-types.js
index 852c319..e464b8f 100644
--- a/ui/imports/api/clique-types/clique-types.js
+++ b/ui/imports/api/clique-types/clique-types.js
@@ -46,6 +46,7 @@ let schema = {
link_types: {
type: [String],
minCount: 1,
+ defaultValue: [],
custom: function () {
let that = this;
let findResult = R.all(function (pLinkType) {
diff --git a/ui/imports/ui/components/clique-type/clique-type.html b/ui/imports/ui/components/clique-type/clique-type.html
index 318fb38..7130383 100644
--- a/ui/imports/ui/components/clique-type/clique-type.html
+++ b/ui/imports/ui/components/clique-type/clique-type.html
@@ -61,7 +61,7 @@
<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>
diff --git a/ui/imports/ui/components/clique-type/clique-type.js b/ui/imports/ui/components/clique-type/clique-type.js
index 31efc88..ae50b94 100644
--- a/ui/imports/ui/components/clique-type/clique-type.js
+++ b/ui/imports/ui/components/clique-type/clique-type.js
@@ -213,6 +213,10 @@ Template.CliqueType.helpers({
},
};
},
+
+ exists: function (val) {
+ return ! R.isNil(val);
+ }
}); // end: helpers
function initInsertView(instance, query) {