Limit third party selectors to first-level parties
Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
@@ -49,7 +49,11 @@ const thirdPartiesQuery = graphql`
|
|||||||
query ThirdPartiesMultiSelectFieldQuery($organizationId: ID!) {
|
query ThirdPartiesMultiSelectFieldQuery($organizationId: ID!) {
|
||||||
organization: node(id: $organizationId) {
|
organization: node(id: $organizationId) {
|
||||||
... on Organization {
|
... on Organization {
|
||||||
thirdParties(first: 100, orderBy: { direction: ASC, field: NAME }) {
|
thirdParties(
|
||||||
|
first: 100
|
||||||
|
orderBy: { direction: ASC, field: NAME }
|
||||||
|
filter: { level: 1 }
|
||||||
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
id
|
id
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ const thirdPartiesCellQuery = graphql`
|
|||||||
thirdParties(
|
thirdParties(
|
||||||
first: 100
|
first: 100
|
||||||
orderBy: { direction: ASC, field: NAME }
|
orderBy: { direction: ASC, field: NAME }
|
||||||
|
filter: { level: 1 }
|
||||||
) {
|
) {
|
||||||
edges {
|
edges {
|
||||||
node {
|
node {
|
||||||
|
|||||||
Reference in New Issue
Block a user