Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Supress hydration error for timestamps

Tomas Valenta15527df4d573
diff --git a/components/AgentLogFilesList.tsx b/components/AgentLogFilesList.tsx
index b65605629..381b6c834 100644
--- a/components/AgentLogFilesList.tsx
+++ b/components/AgentLogFilesList.tsx
@@ -128,7 +128,6 @@ function AgentLogFilesList({
onClick={handleClickOnUpload}
/>
</header>
-
{sortedLogUploads.length === 0 && (
<div
className="flex items-center justify-center flex-1"
@@ -170,6 +169,8 @@ function AgentLogFilesList({
'font-semibold',
'text-gray-500',
)}
+ // This prevents the SSR hydration warning for timestamps for timestamps
+ suppressHydrationWarning
>
Uploaded at {logUpload.created_at.toLocaleString()}
</span>
diff --git a/components/AgentNextActionLogDetail.tsx b/components/AgentNextActionLogDetail.tsx
index 6a3d9bf31..ad451dc0a 100644
--- a/components/AgentNextActionLogDetail.tsx
+++ b/components/AgentNextActionLogDetail.tsx
@@ -33,7 +33,7 @@ function AgentNextActionLogDetail({
src={log.command}
name={null}
style={{
- background: 'transparent'
+ background: 'transparent',
}}
displayObjectSize={false}
quotesOnKeys={false}