Skip to content

Conversation

@jochenklar
Copy link
Member

This PR removes the (faulty) conversion to Number and to Boolean conversion when retrieving something from the local storage. The checkboxes in the management interface and the showAll flag in projects therefore need to check for 'true' as well.

The useLsState hook works when storing an objects since it uses JSON serialization. Maybe we should only use JSON in the LS in the future and have less keys.

Copy link
Member

@MyPyDavid MyPyDavid left a comment

Choose a reason for hiding this comment

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

thanks, this fixes the bug!
Ive added a test for this in #1302

@MyPyDavid MyPyDavid added this to the RDMO 2.3.0 milestone Apr 7, 2025
@jochenklar jochenklar merged commit 8234eaa into 2.3.0 Apr 8, 2025
19 checks passed
@jochenklar jochenklar deleted the 2.3.0-fix-local-storage branch April 8, 2025 08:31
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