diff --git a/src/app/[orgId]/settings/logs/access/page.tsx b/src/app/[orgId]/settings/logs/access/page.tsx
index 76962305e..a6fa601e9 100644
--- a/src/app/[orgId]/settings/logs/access/page.tsx
+++ b/src/app/[orgId]/settings/logs/access/page.tsx
@@ -294,7 +294,14 @@ export default function GeneralPage() {
},
{
accessorKey: "ip",
- header: () => {t("ip")}
+ header: () => {t("ip")},
+ cell: ({ row }) => {
+ return row.original.ip ? (
+ row.original.ip
+ ) : (
+ -
+ );
+ }
},
{
accessorKey: "location",
@@ -357,7 +364,10 @@ export default function GeneralPage() {
);
},
cell: ({ row }) => {
- if (!row.original.resourceNiceId) {
+ if (
+ !row.original.resourceNiceId ||
+ !row.original.resourceName
+ ) {
return (
-
);
@@ -411,14 +421,19 @@ export default function GeneralPage() {
);
},
cell: ({ row }) => {
- const typeLabel =
- row.original.type === "ssh" ||
- row.original.type === "rdp" ||
- row.original.type === "vnc"
+ const typeLabel = row.original.type
+ ? row.original.type === "ssh" ||
+ row.original.type === "rdp" ||
+ row.original.type === "vnc"
? row.original.type.toUpperCase()
: row.original.type.charAt(0).toUpperCase() +
- row.original.type.slice(1);
- return {typeLabel || "-"};
+ row.original.type.slice(1)
+ : null;
+ return typeLabel ? (
+ {typeLabel}
+ ) : (
+ -
+ );
}
},
{
@@ -455,7 +470,9 @@ export default function GeneralPage() {
{row.original.actor}
>
) : (
- <>->
+
+ -
+
)}
);
@@ -466,7 +483,9 @@ export default function GeneralPage() {
header: () => {t("actorId")},
cell: ({ row }) => (
- {row.original.actorId || "-"}
+ {row.original.actorId || (
+ -
+ )}
)
}
diff --git a/src/app/[orgId]/settings/logs/action/page.tsx b/src/app/[orgId]/settings/logs/action/page.tsx
index 7bbbca9ef..aec89dfd4 100644
--- a/src/app/[orgId]/settings/logs/action/page.tsx
+++ b/src/app/[orgId]/settings/logs/action/page.tsx
@@ -303,7 +303,11 @@ export default function GeneralPage() {
) : (
)}
- {row.original.actor}
+ {row.original.actor || (
+
+ -
+
+ )}
);
}
@@ -314,7 +318,11 @@ export default function GeneralPage() {
cell: ({ row }) => {
return (
- {row.original.actorId}
+ {row.original.actorId || (
+
+ -
+
+ )}
);
}
diff --git a/src/app/[orgId]/settings/logs/ai/page.tsx b/src/app/[orgId]/settings/logs/ai/page.tsx
index 81c2dcf4b..6543adb13 100644
--- a/src/app/[orgId]/settings/logs/ai/page.tsx
+++ b/src/app/[orgId]/settings/logs/ai/page.tsx
@@ -297,7 +297,11 @@ export default function AiSessionLogsPage() {
return (
- {row.original.providerName || "-"}
+ {row.original.providerName || (
+
+ -
+
+ )}
);
}
@@ -353,7 +357,11 @@ export default function AiSessionLogsPage() {
);
},
cell: ({ row }) => {
- return {row.original.requestedModel || "-"};
+ return row.original.requestedModel ? (
+ {row.original.requestedModel}
+ ) : (
+ -
+ );
}
},
{
@@ -378,7 +386,10 @@ export default function AiSessionLogsPage() {
);
},
cell: ({ row }) => {
- if (!row.original.resourceNiceId) {
+ if (
+ !row.original.resourceNiceId ||
+ !row.original.resourceName
+ ) {
return (
-
);
@@ -471,7 +482,9 @@ export default function AiSessionLogsPage() {
{row.original.userEmail}
>
) : (
- <>->
+
+ -
+
)}
);
diff --git a/src/app/[orgId]/settings/logs/connection/page.tsx b/src/app/[orgId]/settings/logs/connection/page.tsx
index 25d95c5f9..b2b7fff18 100644
--- a/src/app/[orgId]/settings/logs/connection/page.tsx
+++ b/src/app/[orgId]/settings/logs/connection/page.tsx
@@ -311,7 +311,9 @@ export default function ConnectionLogsPage() {
cell: ({ row }) => {
return (
- {row.original.protocol?.toUpperCase()}
+ {row.original.protocol?.toUpperCase() || (
+ -
+ )}
);
}
@@ -338,7 +340,10 @@ export default function ConnectionLogsPage() {
);
},
cell: ({ row }) => {
- if (!row.original.resourceNiceId) {
+ if (
+ !row.original.resourceNiceId ||
+ !row.original.resourceName
+ ) {
return (
-
);
@@ -394,11 +399,14 @@ export default function ConnectionLogsPage() {
);
}
- return (
-
- {row.original.clientName ?? "-"}
-
- );
+ if (row.original.clientName) {
+ return (
+
+ {row.original.clientName}
+
+ );
+ }
+ return -;
}
},
{
@@ -431,17 +439,19 @@ export default function ConnectionLogsPage() {
);
}
- return -;
+ return -;
}
},
{
accessorKey: "sourceAddr",
header: () => {t("sourceAddress")},
cell: ({ row }) => {
- return (
+ return row.original.sourceAddr ? (
{row.original.sourceAddr}
+ ) : (
+ -
);
}
},
@@ -467,10 +477,12 @@ export default function ConnectionLogsPage() {
);
},
cell: ({ row }) => {
- return (
+ return row.original.destAddr ? (
{row.original.destAddr}
+ ) : (
+ -
);
}
},
diff --git a/src/app/[orgId]/settings/logs/request/page.tsx b/src/app/[orgId]/settings/logs/request/page.tsx
index d2241d83d..732bad3ad 100644
--- a/src/app/[orgId]/settings/logs/request/page.tsx
+++ b/src/app/[orgId]/settings/logs/request/page.tsx
@@ -347,7 +347,14 @@ export default function GeneralPage() {
},
{
accessorKey: "ip",
- header: ({ column }) => {t("ip")}
+ header: ({ column }) => {t("ip")},
+ cell: ({ row }) => {
+ return row.original.ip ? (
+ row.original.ip
+ ) : (
+ -
+ );
+ }
},
{
accessorKey: "location",
@@ -411,7 +418,10 @@ export default function GeneralPage() {
);
},
cell: ({ row }) => {
- if (!row.original.resourceNiceId) {
+ if (
+ !row.original.resourceNiceId ||
+ !row.original.resourceName
+ ) {
return (
-
);
@@ -458,6 +468,11 @@ export default function GeneralPage() {
);
},
cell: ({ row }) => {
+ if (!row.original.host) {
+ return (
+ -
+ );
+ }
return (
{row.original.tls ? (
@@ -490,6 +505,13 @@ export default function GeneralPage() {
/>
);
+ },
+ cell: ({ row }) => {
+ return row.original.path ? (
+ row.original.path
+ ) : (
+ -
+ );
}
},
@@ -524,6 +546,13 @@ export default function GeneralPage() {
/>
);
+ },
+ cell: ({ row }) => {
+ return row.original.method ? (
+ row.original.method
+ ) : (
+ -
+ );
}
},
{
@@ -566,7 +595,11 @@ export default function GeneralPage() {
cell: ({ row }) => {
return (
- {reasonMap[row.original.reason]}
+ {reasonMap[row.original.reason] ?? (
+
+ -
+
+ )}
);
}
@@ -605,7 +638,9 @@ export default function GeneralPage() {
{row.original.actor}
>
) : (
- <>->
+
+ -
+
)}
);