mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 13:26:16 +00:00
Update frontend/src/pages/pam/PamSessionsByIDPage/components/PamSessionLogsSection.utils.ts
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
greptile-apps[bot]
parent
d870c047f9
commit
050bc2d66b
+1
-1
@@ -35,7 +35,7 @@ export const formatLogContent = (text: string | null | undefined): string => {
|
|||||||
return match ? match[0].length : 0;
|
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
|
// Remove the common indentation from all lines
|
||||||
if (minIndentation > 0) {
|
if (minIndentation > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user