Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

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

Merged
dhaneshnm merged 1 commit into1.7.0-M3from
2985-copy-shareable-link-bug-fix
Jan 4, 2022
Merged

Fix creation of resources list from "copy resource list" shortcut link#1012
dhaneshnm merged 1 commit into1.7.0-M3from
2985-copy-shareable-link-bug-fix

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants