Skip to content

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

Fix lint

Joshen Limd8eb858b8f73
diff --git a/studio/components/interfaces/Organization/OAuthApps/PublishAppModal.tsx b/studio/components/interfaces/Organization/OAuthApps/PublishAppModal.tsx
index 1e34872d529..5b99f2a1af7 100644
--- a/studio/components/interfaces/Organization/OAuthApps/PublishAppModal.tsx
+++ b/studio/components/interfaces/Organization/OAuthApps/PublishAppModal.tsx
@@ -167,6 +167,9 @@ const PublishAppModal = ({
onSubmit={onSubmit}
>
{({ isSubmitting, resetForm }: { isSubmitting: boolean; resetForm: any }) => {
+ // [Joshen] although this "technically" is breaking the rules of React hooks
+ // it won't error because the hooks are always rendered in the same order
+ // eslint-disable-next-line react-hooks/rules-of-hooks
useEffect(() => {
if (visible && selectedApp !== undefined) {
const values = { name: selectedApp.name, website: selectedApp.website }