Fix show certificate button returning invalid CA

When trying to download the CA certificate from
the dashboard by clicking the "Show Certificate"
button it will return undefined.

Change-Id: Ibb884835ec9a82df715d0a6485f16124622516e0
Closes-Bug: 1769918
Story: 2003527
Task: 24806
This commit is contained in:
Tobias Urdin 2018-08-22 18:24:37 +02:00
parent f2f3e9ec71
commit f40eba0371
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
function perform(selected) {
// get certificate
return magnum.showCertificate(selected.id).then(function(response) {
textDownload.downloadTextFile(response.pem, selected.name + "_ca.pem");
textDownload.downloadTextFile(response.data.pem, selected.name + "_ca.pem");
});
}