diff --git a/jade-helpers.js b/jade-helpers.js index 4fb05e6..cc1d67f 100644 --- a/jade-helpers.js +++ b/jade-helpers.js @@ -42,7 +42,7 @@ module.exports = function(sails) { return row; }); - if(!_.isUndefined(attr)) + if(!_.isUndefined(attr) && _.isUndefined(options)) { let AttributeName = _.get(attr, "cms.label", false) || attr.collection || attr.model; options.unshift({value: null, title: 'Without '+ AttributeName }) diff --git a/package.json b/package.json index 1409816..95dfe9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sails-hook-cms", - "version": "0.0.22", + "version": "0.0.23", "description": "A simple sails v0.12 admin panel", "main": "index.js", "scripts": {