Skip to content

Commit dcf7cfb

Browse files
committed
bugfix
1 parent aa34777 commit dcf7cfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ app.controller('WebhooksCtrl', ['$scope', function ($scope) {
44
ar.splice(ar.indexOf(item), 1);
55
}
66
$scope.hooks = $scope.pluginConfig('webhooks') || [];
7+
if (!Array.isArray($scope.hooks)) $scope.hooks = [];
78
if (!$scope.hooks.length) $scope.hooks.push({});
89

910
$scope.remove = function (hook) {

0 commit comments

Comments
 (0)