Merge pull request #2562 from richard-cox/fix-bulk-yaml-download

Fix Download YAML list action when multiple resources are selected
This commit is contained in:
Richard Cox 2021-03-18 17:30:42 +00:00 committed by GitHub
commit 32f770f9e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1075,7 +1075,7 @@ export default {
const link = item.hasLink('rioview') ? 'rioview' : 'view'; const link = item.hasLink('rioview') ? 'rioview' : 'view';
return item.followLink(link, { headers: { accept: 'application/yaml' } } ).then((data) => { return item.followLink(link, { headers: { accept: 'application/yaml' } } ).then((data) => {
files[`resources/${ names[idx] }`] = data; files[`resources/${ names[idx] }`] = data.data || data;
}); });
}); });