Skip to content

Commit

Permalink
[NOREF] Ignore query for gov task list if there's no system intake ID (
Browse files Browse the repository at this point in the history
…#2396)

* Ignore query for gov task list if there's no system intake ID

* Add default systemIntakeID to address test issues, update snapshot to match
  • Loading branch information
ClayBenson94 committed Jan 26, 2024
1 parent 9924646 commit 3a8470f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/data/businessCase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const defaultProposedSolution = {

export const businessCaseInitialData: BusinessCaseModel = {
status: 'OPEN',
systemIntakeId: '',
systemIntakeId: '34ded286-02fa-4457-b1a5-0fc6ec00ecf5', // just a random UUID. All business cases should have a systemIntakeId
systemIntakeStatus: '',
requestName: '',
requester: {
Expand Down
3 changes: 2 additions & 1 deletion src/views/BusinessCase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ export const BusinessCase = () => {
>(GetGovernanceTaskListQuery, {
variables: {
id: businessCase.systemIntakeId
}
},
skip: !businessCase?.systemIntakeId
});

const isFinal: boolean =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ exports[`The GRT business case review > matches the snapshot 1`] = `
</div>
<a
class="usa-button margin-top-5"
href="/governance-review-team//actions"
href="/governance-review-team/34ded286-02fa-4457-b1a5-0fc6ec00ecf5/actions"
>
Take an action
</a>
Expand Down

0 comments on commit 3a8470f

Please sign in to comment.