-
Notifications
You must be signed in to change notification settings - Fork 17
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
fix(apply tag dialog): fix type errors #1567
Conversation
Getting this up for review to unblock release of a working 6.1! There are some additional items to note for review here that I punted looking into in favor of fixing user facing behavior more quickly. If we have agreement on punting on these, we can turn them into followup issues:
|
First, to clarify, the unsafe lifecycle methods were getting deprecated for class-based components hooks or no hooks. There are more idiomatic ways of accomplishing the same behavior with modern class-based lifecycle methods. However, functional components using hooks provide the same functionality and are easier to reason about and make all class-based lifecycle methods, In this case, it looks like the lifecycle methods were being used to reset the selected tags between openings of the dialog. It looks like you'll need to add that using
The This is usually not an issue as Knex and pg-node take care of converting timestamptz columns to Spoke/src/server/api/campaign-contact.js Lines 246 to 250 in 7d9b801
and then check whether this ^^ magic happened or whether we need to query as usual: Spoke/src/server/api/campaign-contact-tag.ts Lines 19 to 24 in 7d9b801
|
src/containers/AssignmentTexterContact/components/ApplyTagDialog.tsx
Outdated
Show resolved
Hide resolved
src/containers/AssignmentTexterContact/components/ApplyTagDialog.tsx
Outdated
Show resolved
Hide resolved
src/containers/AssignmentTexterContact/components/ApplyTagDialog.tsx
Outdated
Show resolved
Hide resolved
src/containers/AssignmentTexterContact/components/ApplyTagDialog.tsx
Outdated
Show resolved
Hide resolved
src/containers/AssignmentTexterContact/components/ApplyTagDialog.tsx
Outdated
Show resolved
Hide resolved
src/containers/AssignmentTexterContact/components/ApplyTagDialog.tsx
Outdated
Show resolved
Hide resolved
src/containers/AssignmentTexterContact/components/ApplyTagDialog.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Description
This fixes type errors in the apply tag dialog component.
Motivation and Context
Closes #1565
How Has This Been Tested?
This has been tested locally.
Screenshots (if appropriate):
Documentation Changes
Checklist: