diff --git a/package.js b/package.js index e4c0e18..34e7858 100644 --- a/package.js +++ b/package.js @@ -1,6 +1,6 @@ Package.describe({ name: 'eoliphant:autoform-semantic-ui', - version: '0.9.9', + version: '1.0.0', // Brief, one-line summary of the package. summary: 'Semantic-ui template for aldeed:autoform package.', // URL to the Git repository containing the source code for this package. @@ -15,7 +15,7 @@ Package.onUse(function(api) { api.use(['ecmascript', 'templating', 'underscore', 'jquery'], 'client'); - api.use('aldeed:autoform@5.8.1', 'client'); + api.use('aldeed:autoform@6.0.0', 'client'); api.use('aldeed:template-extension@3.4.3','client'); diff --git a/templates/semantic-ui/components/quickForm/quickForm.js b/templates/semantic-ui/components/quickForm/quickForm.js index 27d9f8a..d611014 100644 --- a/templates/semantic-ui/components/quickForm/quickForm.js +++ b/templates/semantic-ui/components/quickForm/quickForm.js @@ -8,8 +8,8 @@ Template.quickForm_semanticUI.helpers({ } // if SimpleSchema.defaultLabel is defined, use it - if (typeof SimpleSchema.defaultLabel === "function") { - return SimpleSchema.defaultLabel(name); + if (AutoForm.SimpleSchema && typeof AutoForm.SimpleSchema.defaultLabel === "function") { + return AutoForm.SimpleSchema.defaultLabel(name); } else { // else, just capitalise name return name.charAt(0).toUpperCase() + name.slice(1);