Minor fix to sanity check multi-copy data in the copy template editor
after clearing the template contents. This cleans up some ugly console
errors.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
var keys = Object.keys($scope.working.MultiMap);
// for-loop for shortcut exit
for (var i = 0; i < keys.length; i++) {
- if ($scope.working.MultiMap[keys[i]].length > 1) {
+ if ($scope.working.MultiMap[keys[i]] &&
+ $scope.working.MultiMap[keys[i]].length > 1) {
return true;
}
}