From faabe3d654519e28504589189ff31ad349fbd9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Eeg=20M=C3=B8ller?= Date: Thu, 27 Oct 2016 11:07:47 +0200 Subject: [PATCH] Fixes #67 --- src/Our.Umbraco.Vorto/Web/UI/App_Plugins/Vorto/js/vorto.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Our.Umbraco.Vorto/Web/UI/App_Plugins/Vorto/js/vorto.js b/src/Our.Umbraco.Vorto/Web/UI/App_Plugins/Vorto/js/vorto.js index afe37e2..add1131 100644 --- a/src/Our.Umbraco.Vorto/Web/UI/App_Plugins/Vorto/js/vorto.js +++ b/src/Our.Umbraco.Vorto/Web/UI/App_Plugins/Vorto/js/vorto.js @@ -42,6 +42,9 @@ config: {}, view: "" }; + + if (!angular.isObject($scope.model.value)) + $scope.model.value = {}; $scope.model.value = $scope.model.value || { values: {},