You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
A user can import a database which has an array of empty values, and the overall balance incorrectly updates.
To Reproduce
Steps to reproduce the behavior:
You can unzip and download the testdb.ttldb file provided or create one with the contents: [ { "type": "flexible", "date": "2023-05-21", "values": [] } ]
Go to Edit > Import Database
Upload testdb.ttldb file
Scroll down to bottom
See error
Expected behavior
When importing a database, I expected that the app would check for an array of empty values before validating, and fail if there is no values in the database file. And even if the app should accept empty values, the overall time balance shouldn't be affected since there is no times entered.
Describe the issue
A user can import a database which has an array of empty values, and the overall balance incorrectly updates.
To Reproduce
Steps to reproduce the behavior:
testdb.ttldb
file provided or create one with the contents:[ { "type": "flexible", "date": "2023-05-21", "values": [] } ]
testdb.ttldb
fileExpected behavior
When importing a database, I expected that the app would check for an array of empty values before validating, and fail if there is no values in the database file. And even if the app should accept empty values, the overall time balance shouldn't be affected since there is no times entered.
Environment
testdb.zip
The text was updated successfully, but these errors were encountered: