mirror of
https://github.com/nextcloud/passman.git
synced 2024-12-26 09:34:02 +08:00
Check if description is set before replacing newlines
This commit is contained in:
parent
401da2bd55
commit
5e1b457c14
1 changed files with 3 additions and 1 deletions
|
@ -344,7 +344,9 @@
|
|||
|
||||
$scope.selectedCredential = false;
|
||||
$scope.selectCredential = function (credential) {
|
||||
if(credential.description) {
|
||||
credential.description_html = $sce.trustAsHtml(angular.copy(credential.description).replace("\n", '<br />'));
|
||||
}
|
||||
$scope.selectedCredential = angular.copy(credential);
|
||||
$rootScope.$emit('app_menu', true);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue