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

Frontend not starting scanner with empty database #786

Closed
GamingGuy003 opened this issue Jun 5, 2024 · 2 comments
Closed

Frontend not starting scanner with empty database #786

GamingGuy003 opened this issue Jun 5, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@GamingGuy003
Copy link
Collaborator

Describe the bug
If the database is empty, the frontend will display a confirmation dialgo on scan start. Regardles what is clicked, the scanner will not actually start and the frontend throws an error

To Reproduce
Steps to reproduce the behavior:
delete signatures.db, restart raspirus, start scan

Expected behavior
Scanner gets started even with no hashes in db

@Benji377
Copy link
Member

Benji377 commented Jun 5, 2024

This could be an issue with the parseInt function trying to parse a value that has not bee initialized (see #787 comments). This issue is affected by the lines here.
I could solve it by checking the variable before parsing it. I will keep this in mind when reworking the frontend.
For now, the same temporary solution applies as in #787

@Benji377
Copy link
Member

This is no longer being checked with the new UI in Rust. One can now scan with an empty database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants