From ec7ca507e7bd9779828f2b1987249a7bb7ead3d0 Mon Sep 17 00:00:00 2001 From: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com> Date: Thu, 14 Nov 2019 10:35:43 -0700 Subject: [PATCH] download function downloads --- plugins/norman/resource-instance.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/norman/resource-instance.js b/plugins/norman/resource-instance.js index cfd0c3f167..244c294a00 100644 --- a/plugins/norman/resource-instance.js +++ b/plugins/norman/resource-instance.js @@ -548,9 +548,9 @@ export default { download() { return async() => { - const value = await this.followLink('view', { headers: { accept: 'application/yaml' } }).data; + const value = await this.followLink('view', { headers: { accept: 'application/yaml' } }); - downloadFile(`${ this.nameDisplay }.yaml`, value, 'application/yaml'); + downloadFile(`${ this.nameDisplay }.yaml`, value.data, 'application/yaml'); }; },