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

Fix creation of resources list from "copy resource list" shortcut link #1012

Merged
merged 1 commit into from
Jan 4, 2022

Conversation

nicwells
Copy link
Contributor

Fixes BlueBrain/nexus#2985

Description

The functionality where a user can copy a shortcut to a resources list and share with others was broken. When
the link was visited the new resources list would get overwritten. Rewrote the useLocalStorage hook that was being used to make it work with async code as expected.

How has this been tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added necessary unit and integration tests.
  • I have added screenshots (if applicable), in the comment section.

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (1.7.0-M3@8c262fc). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             1.7.0-M3    #1012   +/-   ##
===========================================
  Coverage            ?   65.95%           
===========================================
  Files               ?       21           
  Lines               ?      611           
  Branches            ?      126           
===========================================
  Hits                ?      403           
  Misses              ?      208           
  Partials            ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c262fc...1a3e985. Read the comment docs.

@dhaneshnm dhaneshnm merged commit 530cf9f into 1.7.0-M3 Jan 4, 2022
@dhaneshnm dhaneshnm deleted the 2985-copy-shareable-link-bug-fix branch January 4, 2022 08:45
smitfire added a commit that referenced this pull request Jan 10, 2022
…to 2938-nums

* '2938-nums' of https://github.com/BlueBrain/nexus-web:
  2986 fix styles (#1015)
  Add redirect params to login call back (#1014)
  2644 allow user to select search config (#1011)
  Rewrite useLocalStorage hook and make use of (#1012)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants