Skip to content

Commit

Permalink
fix(facility): provide organisationRowId as a variable to the search …
Browse files Browse the repository at this point in the history
…facilities function
  • Loading branch information
dleard committed Apr 27, 2020
1 parent 6d25883 commit d787828
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/containers/Facilities/FacilitiesListContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export default createRefetchContainer(
orderByField: {type: "String"}
direction: {type: "String"}
organisationId: {type: "ID!"}
organisationRowId: {type: "String"}
facilityCount: {type: "Int"}
offsetValue: {type: "Int"}
) {
Expand All @@ -177,6 +178,7 @@ export default createRefetchContainer(
searchField: $searchField
searchValue: $searchValue
orderByField: $orderByField
organisationRowId: $organisationRowId
direction: $direction
offsetValue: $offsetValue
) {
Expand Down Expand Up @@ -207,6 +209,7 @@ export default createRefetchContainer(
$orderByField: String
$direction: String
$organisationId: ID!
$organisationRowId: String
$facilityCount: Int
$offsetValue: Int
) {
Expand All @@ -217,6 +220,7 @@ export default createRefetchContainer(
direction: $direction
searchField: $searchField
searchValue: $searchValue
organisationRowId: $organisationRowId
organisationId: $organisationId
facilityCount: $facilityCount
offsetValue: $offsetValue
Expand Down
2 changes: 2 additions & 0 deletions app/pages/reporter/facilities-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class FacilitiesList extends Component<Props> {
$searchField: String
$searchValue: String
$organisationId: ID!
$organisationRowId: String
$offsetValue: Int
) {
query {
Expand All @@ -31,6 +32,7 @@ class FacilitiesList extends Component<Props> {
searchField: $searchField
searchValue: $searchValue
organisationId: $organisationId
organisationRowId: $organisationRowId
offsetValue: $offsetValue
)
session {
Expand Down

0 comments on commit d787828

Please sign in to comment.