U4-10891 Color Picker Cannot read property 'hasOwnProperty' of null

(cherry picked from commit 4a8730b925)
This commit is contained in:
Sebastiaan Jansssen
2018-03-01 16:45:38 +01:00
parent 0beda4b790
commit 4f062306a6

View File

@@ -15,7 +15,7 @@ function ColorPickerController($scope) {
$scope.toggleItem = function (color) {
var currentColor = $scope.model.value.hasOwnProperty("value")
var currentColor = ($scope.model.value && $scope.model.value.hasOwnProperty("value"))
? $scope.model.value.value
: $scope.model.value;