Skip to content

Conversation

tony-tvu
Copy link
Collaborator

  • Identified the issue which this PR solves.
  • Read the CONTRIBUTING document.
  • Code builds clean without any errors or warnings.
  • Added appropriate tests for any new functionality.
  • All new and existing tests passed.
  • Added comments in the code, where necessary.
  • Ran make check to catch common errors. Fixed any that came up.

Description:
Part of an ongoing effort to convert existing javascript files to typescript.

Note: ServiceLabelList and ServiceLabelDeleteDialog were both converted in this PR to avoid receiving this error:
Cannot destructure property 'service' of 'cache5.readQuery(...)' as it is null.
This error occurs when ServiceLabelDeleteDialog.js is deleted without a cache available from ServiceLabelList.tsx, since ServiceLabelList.tsx uses urql instead of apollo now.

Which issue(s) this PR fixes:
#2318

Out of Scope:

  • switch out Apollo client with urql

@KatieMSB KatieMSB merged commit 87b27a4 into master Sep 9, 2022
@KatieMSB KatieMSB deleted the ts-ServiceLabelList branch September 9, 2022 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants