Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

polish: don't show Load older on error

TzeYiinga7770021e62d
diff --git a/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx b/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
index 4fa7164ee1c..598b47d7aea 100644
--- a/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
+++ b/studio/components/interfaces/Settings/Logs/LogsPreviewer.tsx
@@ -191,11 +191,13 @@ export const LogsPreviewer: React.FC<Props> = ({ projectRef, queryType, override
onHistogramToggle={() => setShowChart(!showChart)}
/>
</LoadingOpacity>
+ {!error && (
<div className="p-2">
- <Button onClick={() => loadOlder()} icon={<IconRewind />} type="default">
+ <Button onClick={loadOlder} icon={<IconRewind />} type="default">
Load older
</Button>
</div>
+ )}
{error && (
<div className="flex w-full h-full justify-center items-center mx-auto">
<Card className="flex flex-col gap-y-2 w-2/5 bg-scale-400">