Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.ts
Andre050bc2d66ba4
diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.ts b/frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.tsindex 4696331fb7..d761456558 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 linesif (minIndentation > 0) {