Commit 7e3a00c8 authored by born's avatar born
Browse files

Nobility titles are ignored for old data file that does not contain them

parent ca0c07c1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -355,8 +355,10 @@ angular
                            var nodeObject = {id: value.id, nodetype: value.nodetype};
                            nodeObject.label = value.id;
                            nodeObject.title = value.id;
                            if( !$scope.vissettings.paperdatafile ){
                                nodeObject.nobilityTitles = Object.keys(value.titles);
                                $scope.allnobilitytitles.push.apply($scope.allnobilitytitles, Object.keys(value.titles));
                            }
                            if( $scope.selectedpersons.indexOf(value.id) != -1 ){
                                nodeObject.font = "14px arial red";
                            }