The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Ensure that checkTaxIdsEqual check ignores order of items in the 2 arrays
Joshen Lim651a59903d51
diff --git a/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.utilts.ts b/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.utilts.tsindex 29739aac78c..825fd7a487d 100644--- a/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.utilts.ts+++ b/studio/components/interfaces/Organization/BillingSettingsV2/TaxID/TaxID.utilts.ts@@ -1,6 +1,6 @@import { TaxIdValue } from 'data/organizations/organization-tax-ids-update-mutation'import { TAX_IDS } from './TaxID.constants'-import { isEqual } from 'lodash'+import { isEqual, sortBy } from 'lodash'/*** Sanitize EU VAT ids so they get prepended with the country code@@ -31,5 +31,5 @@ export const checkTaxIdsEqual = (a: any[], b: any[]) => {const bExcludeId = b.map((x) => {return { type: x.type, value: x.value, name: x.name }})- return isEqual(aExcludeId, bExcludeId)+ return isEqual(sortBy(aExcludeId, 'name'), sortBy(bExcludeId, 'name'))}