The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: Fix the loading state when updating roles twice in a row (#37438)
Ivan Vasilov29f5fde08cc6
diff --git a/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesConfirmationModal.tsx b/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesConfirmationModal.tsxindex fc37dd4fe91..246dfd391d0 100644--- a/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesConfirmationModal.tsx+++ b/apps/studio/components/interfaces/Organization/TeamSettings/UpdateRolesPanel/UpdateRolesConfirmationModal.tsx@@ -90,10 +90,11 @@ export const UpdateRolesConfirmationModal = ({})toast.success(`Successfully updated role for ${member.username}`)onClose(true)- return} catch (error: any) {+ toast.error(`Failed to update role: ${error.message}`)+ } finally {setSaving(false)- return toast.error(`Failed to update role: ${error.message}`)+ return}}@@ -130,8 +131,10 @@ export const UpdateRolesConfirmationModal = ({toast.success(`Successfully updated role for ${member.username}`)onClose(true)} catch (error: any) {+ toast.error(`Failed to update role: ${error.message}`)+ } finally {setSaving(false)- return toast.error(`Failed to update role: ${error.message}`)+ return}}