Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
pantsel committed Nov 16, 2019
1 parent d79e9a1 commit 50b46ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"globals": { "sails": true },
"node" : true,
"asi" : true
"asi" : true,
"esversion": 6
}
2 changes: 1 addition & 1 deletion assets/js/app/plugins/add-plugin-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
// Delete unset config fields
if(request_data.config) {
Object.keys(request_data.config).forEach(function (key) {
if ((!request_data.config[key]) ||
if (!request_data.config[key] ||
(Array.isArray(request_data.config[key]) && !request_data.config[key].length) ||
(_.isObject(request_data.config[key]) &&
(Object.values(request_data.config[key]).every(v => v == null))))
Expand Down

0 comments on commit 50b46ef

Please sign in to comment.