diff --git a/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx b/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx index 23c5c964f32..e94c8ca79f3 100644 --- a/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx +++ b/apps/studio/components/layouts/LogsLayout/LogsLayout.tsx @@ -33,23 +33,24 @@ const LogsLayout = ({ title, children }: PropsWithChildren) => }, [router, setLastLogsPage]) if (!canUseLogsExplorer) { - if (isLoading) { - return - } + if (isLoading) { + return + } + + if (!isLoading && !canUseLogsExplorer) { + return ( + + + + ) + } - if (!isLoading && !canUseLogsExplorer) { return ( - - + }> + {children} ) } - - return ( - }> - {children} - - ) } -export default withAuth(LogsLayout) \ No newline at end of file +export default withAuth(LogsLayout)