mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing downloading logs
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
6bb874d8ab
commit
4b0b635d73
@ -38,8 +38,7 @@ export const PodLogControls = observer((props: Props) => {
|
||||
|
||||
const downloadLogs = () => {
|
||||
const fileName = selectedContainer ? selectedContainer.name : pod.getName();
|
||||
const [oldLogs, newLogs] = logs;
|
||||
downloadFile(fileName + ".log", [...oldLogs, ...newLogs].join("\n"), "text/plain");
|
||||
downloadFile(fileName + ".log", logs.join("\n"), "text/plain");
|
||||
}
|
||||
|
||||
const onContainerChange = (option: SelectOption) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user