communityconnect icon indicating copy to clipboard operation
communityconnect copied to clipboard

Refactor duplicated code for removing saved resource

Open acharliekelly opened this issue 7 years ago • 1 comments

Fixed issue #329 by copying the removalConfirmed function from SavedResource to OrganizationCard. To avoid redundancy, this should be moved to a new location where it can be called by both components. Would have included this in #329, but didn't know where to put it. Also, wanted to wait for issue #335 to be closed, since it uses a lot of the same code and I despise merge conflicts.

acharliekelly avatar Jul 03 '19 06:07 acharliekelly

Currently, the "action" of saving or removing a resource is being dispatched, but the , but then actually reading/re-writing the query string is handled in the component. Seems like this isn't how Redux is supposed to work, but I don't really know it that well.

acharliekelly avatar Jul 31 '19 01:07 acharliekelly