Skip to content

Commit

Permalink
Add ID to fields to avoid apollo-gql error (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
dLobatog committed Apr 24, 2020
1 parent 668cc2d commit a0efc60
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const QUERY = gql`
totalHostCount
majorOsVersion
benchmark {
id
title
version
}
Expand Down
1 change: 1 addition & 0 deletions src/SmartComponents/CreatePolicy/ReviewCreatedPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import { useQuery } from '@apollo/react-hooks';
const REVIEW = gql`
query review($benchmarkId: String!) {
benchmark(id: $benchmarkId) {
id
title
refId
version
Expand Down
2 changes: 2 additions & 0 deletions src/SmartComponents/PolicyDetails/PolicyDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ query Profile($policyId: String!){
majorOsVersion
lastScanned
policy {
id
name
}
businessObjective {
Expand All @@ -61,6 +62,7 @@ query Profile($policyId: String!){
identifier
}
benchmark {
id
title
version
}
Expand Down
1 change: 1 addition & 0 deletions src/SmartComponents/ReportDetails/ReportDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ query Profile($policyId: String!){
id
}
benchmark {
id
version
}
businessObjective {
Expand Down
2 changes: 2 additions & 0 deletions src/SmartComponents/Reports/Reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ const QUERY = gql`
policy {
id
benchmark {
id
version
}
}
benchmark {
id
version
}
}
Expand Down
1 change: 1 addition & 0 deletions src/SmartComponents/SystemDetails/SystemDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import InventoryDetails from 'SmartComponents';
const QUERY = gql`
query System($inventoryId: String!){
system(id: $inventoryId) {
id
name
}
}
Expand Down

0 comments on commit a0efc60

Please sign in to comment.