From eb20c9403db3992288835c31490f95bf10895049 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 2 Aug 2022 12:59:51 +0530 Subject: [PATCH] UI: Fix logic in IslandLogDownloadButton as per changes to IslandLog resource --- .../cc/ui/src/components/ui-components/LogDownloadButtons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/ui/src/components/ui-components/LogDownloadButtons.tsx b/monkey/monkey_island/cc/ui/src/components/ui-components/LogDownloadButtons.tsx index 0e28973e1..1cca8d09b 100644 --- a/monkey/monkey_island/cc/ui/src/components/ui-components/LogDownloadButtons.tsx +++ b/monkey/monkey_island/cc/ui/src/components/ui-components/LogDownloadButtons.tsx @@ -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'); }); }