Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui/schedules: convert ScheduleOverrideDeleteDialog to ts and use urql #2461

Merged
merged 10 commits into from
Jul 19, 2022

Conversation

tony-tvu
Copy link
Collaborator

@tony-tvu tony-tvu commented Jun 21, 2022

  • 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.

Which issue(s) this PR fixes:
#2318

Out of Scope:

  • switch to urql

Forfold
Forfold previously approved these changes Jun 22, 2022
@tony-tvu tony-tvu marked this pull request as draft June 22, 2022 16:04
@tony-tvu tony-tvu marked this pull request as ready for review June 22, 2022 17:47
KatieMSB
KatieMSB previously approved these changes Jun 27, 2022
@tony-tvu tony-tvu changed the title ui/schedules: convert ScheduleOverrideDeleteDialog to typescript ui/schedules: convert ScheduleOverrideDeleteDialog to ts and use urql Jun 29, 2022
Comment on lines +57 to +62
const addUser = data.userOverride.addUser ? data.userOverride.addUser : ''
const removeUser = data.userOverride.removeUser
? data.userOverride.removeUser
: ''
const start = data.userOverride.start ? data.userOverride.start : ''
const end = data.userOverride.end ? data.userOverride.end : ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a suggestion

Suggested change
const addUser = data.userOverride.addUser ? data.userOverride.addUser : ''
const removeUser = data.userOverride.removeUser
? data.userOverride.removeUser
: ''
const start = data.userOverride.start ? data.userOverride.start : ''
const end = data.userOverride.end ? data.userOverride.end : ''
const addUser = data.userOverride?.addUser ?? ''
const removeUser = data.userOverride?.removeUser ?? ''
const start = data.userOverride?.start ?? ''
const end = data.userOverride?.end ?? ''

@Forfold Forfold merged commit d4327ba into master Jul 19, 2022
@Forfold Forfold deleted the ts-ScheduleOverrideDeleteDialog branch July 19, 2022 21:08
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