marcoXbresciani / TKCompanionApp

A short and small helper for Toyota Kata practitioners - If you're reading this here on GitHub, please note that main repository is now Codeberg: https://codeberg.org/marco.bresciani/TKCompanionApp
GNU General Public License v3.0
3 stars 1 forks source link

JSON Syntax Error #13

Closed biscuitroller closed 2 years ago

biscuitroller commented 2 years ago

Received an error in version 2.2.0 after tapping on the PDSA Journal.

Invalid PDSA Found SyntaxError: JSON Parse error: Unexpected identifier "settings".

Screenshot_20220622-074133

marcoXbresciani commented 2 years ago

Thank you @biscuitroller. Yep, I think I've forgot to check data structure on first load of the JSON file used to save this PDSA test/sample page: if it's not present, it gives back this error.

Could you please confirm if the error is only on first time opening or always?

marcoXbresciani commented 2 years ago

Basically the error was due to the fact than when the app is trying to load the current PDSA draft for the first time, there are no data, and it is not able to convert them in the proper structure to be shown on the UI. But it's normal: if you open the app for the first time, you shall have no data. Actually I shouldn't have left the error alert there at all! It was a tool I've used for experimenting while loading data... 👎

Thanks for the improvement @biscuitroller . Going to fix it with next release.