[Bug][Projects] Cannot read properties of null (reading 'id')
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened
Project created intially without any data connection is showing in the project list and would like to dlete it however when click on project or setting icon getting error message as "Cannot read properties of null (reading 'id')"
What do you expect to happen
Should able to open setting for project so that it can be deleted.
How to reproduce
Issue in highlighted project
Anything else
No response
Version
v1.0.0-beta6
Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
How did you create the project, by API or Config UI?
Hi everyone.
Faced with the same issue. Project created via Config UI
Also noticed, for that new project there is no Blueprint created. And in database tables ‘_devlake_blueprint*’ there are rows filled with ’null’.
Config UI
Project created with Config UI
Upgraded to v1.0.0-beta8 however issue still persist.
Hi @dwaghulade, I'm so sorry for this issue, but existing data cannot be modified, please create a new project.
@dwaghulade The fix can only prevent the problem for the new projects onward
Thanks @mintsweet & @klesh for the clarification.
Any way to clean-up existing projects as those are unnecessary being displayed in the list.
@dwaghulade try deleting the project from the database.
@klesh I was avoiding to use direct DB deletion approach because of any dependencies impact. Do you have list of tables from where I need to delete entries to make sure all related data as well deleted for these projects?
@dwaghulade I assumed that the problematic project has never been actually used, correct? you may delete it from the projects table if so.
Thanks @klesh for your help. I have removed entries from projects tables which has cleared unwanted projects from the list on UI.
Glad to know, close the issue now