The Odin Project Todo List | Blank projects and Blank todos being created. Also the todos that have information in them are not being added to the correct proj

(added a space before the colon so the link would be able to be posted)
The Odin Project Guidelines:
https ://www.theodinproject.com/lessons/node-path-javascript-todo-list

Github:
https ://github.com/HopliteRPG/third-todo-list/tree/saving-progress
Repo: third-todo-list

Branch: saving-progress

1.Whenever a new project is created blank projects are added to “projectDisplayArray”

2a.Whenever a new todo is created blanks todos are added to the todoArray of all projects

2b.The todos that have information in them from the form are only added to the first projects todoArray. Even though In “renderProjectsInArray” when “projectDivContentHolder” is clicked “renderTodosInArray” displays that projects todoArray but when “todoFormLogic” is run it still only adds the created todo to the first projects todoArray.

  1. Im really confused on how to solve this problem. Can somebody:

3a. Help me solve what’s wrong with how my forms work

3b. Give me a good article or video series that teaches me how to properly add button and form functionality because I think the root of my problem has to do with “projectFormLogic” being run in “renderProjectsInArray” and “todoFormLogic” being run in “renderTodosInArray”

(FYI in order to see the projects updated todos you need to click it again after adding a todo)

(Added a space before the colon so the link would post)

Project/Exercise: Todo List

Lesson link:
https ://www.theodinproject.com/lessons/node-path-javascript-todo-list

Code:
https ://github.com/HopliteRPG/third-todo-list/tree/saving-progress

Issue/Problem: Whenever a new project is created using the add project button blank projects are being added

What I expected: Blank projects wouldnt be created

What I’ve tried: Im not sure how to fix it but I think the issue has to do with projectFormLogic() being run in renderProjectsInArray. Does anybody know how to properly add new form functionality when a button is being appended