UI: Fix logic in IslandLogDownloadButton as per changes to IslandLog resource

This commit is contained in:
Shreya Malviya 2022-08-02 12:59:51 +05:30
parent 96bae42388
commit eb20c9403d
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export const IslandLogDownloadButton = ({ url, variant = 'primary'}: Props) => {
.then(res => res.json())
.then(res => {
let filename = 'Island_log';
let logContent = (res['log_file']);
let logContent = res;
download(logContent, filename, 'text/plain');
});
}