From 050bc2d66ba480e80d35b9d3f9e7e54f03ba5ef2 Mon Sep 17 00:00:00 2001 From: Andre <120525481+x032205@users.noreply.github.com> Date: Sat, 1 Nov 2025 16:00:09 -0400 Subject: [PATCH] Update frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../components/PamSessionLogsSection.utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.ts b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.ts index 4696331fb..d76145655 100644 --- a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.ts +++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.ts @@ -35,7 +35,7 @@ export const formatLogContent = (text: string | null | undefined): string => { return match ? match[0].length : 0; }); - const minIndentation = Math.min(...indentations); + const minIndentation = indentations.length > 0 ? Math.min(...indentations) : 0; // Remove the common indentation from all lines if (minIndentation > 0) {