From 046da3a04eeafd8e356a77761fb9475bbfa01f86 Mon Sep 17 00:00:00 2001 From: Jordi Enric Date: Thu, 9 Apr 2026 13:35:42 +0200 Subject: [PATCH] fix(studio): format devtool files Co-Authored-By: Claude Sonnet 4.6 --- apps/studio/components/layouts/ProjectLayout/index.tsx | 3 +-- .../ResourceExhaustionDevtool.tsx | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/studio/components/layouts/ProjectLayout/index.tsx b/apps/studio/components/layouts/ProjectLayout/index.tsx index db89be94c4e..0797b92daea 100644 --- a/apps/studio/components/layouts/ProjectLayout/index.tsx +++ b/apps/studio/components/layouts/ProjectLayout/index.tsx @@ -55,8 +55,7 @@ import { useAppStateSnapshot } from '@/state/app-state' import { useDatabaseSelectorStateSnapshot } from '@/state/database-selector' const IS_DEV_OR_PREVIEW = - process.env.NODE_ENV === 'development' || - process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview' + process.env.NODE_ENV === 'development' || process.env.NEXT_PUBLIC_VERCEL_ENV === 'preview' const ResourceExhaustionDevtool = IS_DEV_OR_PREVIEW ? dynamic(() => diff --git a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionDevtool.tsx b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionDevtool.tsx index 8023866097b..b9353ad8c64 100644 --- a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionDevtool.tsx +++ b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionDevtool.tsx @@ -9,10 +9,7 @@ import { Button, cn } from 'ui' import { usageKeys } from '@/data/usage/keys' import type { ResourceWarning } from '@/data/usage/resource-warnings-query' -if ( - process.env.NODE_ENV !== 'development' && - process.env.NEXT_PUBLIC_VERCEL_ENV !== 'preview' -) { +if (process.env.NODE_ENV !== 'development' && process.env.NEXT_PUBLIC_VERCEL_ENV !== 'preview') { throw new Error('ResourceExhaustionDevtool must only be imported in development or preview') }