Skip to content

Commit

Permalink
Fix issue #11
Browse files Browse the repository at this point in the history
  • Loading branch information
PGBI committed Dec 10, 2015
1 parent e7e24c3 commit 68b1a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/controllers/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ angular.module('app').controller("PluginController", ["$scope", "Kong", "$locati
}
} else if (attrs.type === 'array') {
if (!obj.hasOwnProperty(key) || obj[key] === '' || angular.equals(obj[key], {})) {
obj[key] = "";
delete obj[key]; // Fix issue #11
}
} else if (attrs.type === 'string' || attrs.type === 'url') {
if (angular.isString(obj[key]) && obj[key] === '') {
Expand Down

0 comments on commit 68b1a84

Please sign in to comment.