Limit third party selectors to first-level parties

Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
Sacha Al Himdani
2026-07-27 17:02:25 +02:00
parent 5c9c9e3888
commit edb67743ae
2 changed files with 6 additions and 1 deletions

View File

@@ -49,7 +49,11 @@ const thirdPartiesQuery = graphql`
query ThirdPartiesMultiSelectFieldQuery($organizationId: ID!) {
organization: node(id: $organizationId) {
... on Organization {
thirdParties(first: 100, orderBy: { direction: ASC, field: NAME }) {
thirdParties(
first: 100
orderBy: { direction: ASC, field: NAME }
filter: { level: 1 }
) {
edges {
node {
id

View File

@@ -32,6 +32,7 @@ const thirdPartiesCellQuery = graphql`
thirdParties(
first: 100
orderBy: { direction: ASC, field: NAME }
filter: { level: 1 }
) {
edges {
node {