Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix totalPeptides field in old projects in browser memory inaccessible#1770

Merged
pverscha merged 1 commit intodevelopunipept/unipept:developfrom
fix/no-total-peptides-fieldunipept/unipept:fix/no-total-peptides-fieldCopy head branch name to clipboard
Jan 21, 2026
Merged

Fix totalPeptides field in old projects in browser memory inaccessible#1770
pverscha merged 1 commit intodevelopunipept/unipept:developfrom
fix/no-total-peptides-fieldunipept/unipept:fix/no-total-peptides-fieldCopy head branch name to clipboard

Conversation

@pverscha
Copy link
Copy Markdown
Member

Projects that are stored in the browser's IndexedDB and that have been made some time ago where missing the totalPeptides field. This field, however, was expected to be there when loading in the project's metadata, causing Unipept to crash.

This PR fixes this issue by using 0 peptides as a placeholder when the totalPeptides field is non-existing. The total peptides count will be correct the next time this project is opened again in Unipept.

@pverscha pverscha self-assigned this Jan 21, 2026
@pverscha pverscha added the bug label Jan 21, 2026
@pverscha pverscha merged commit 83ca03f into develop Jan 21, 2026
4 checks passed
@pverscha pverscha deleted the fix/no-total-peptides-field branch January 21, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.