Closed henrylin03 closed 3 months ago
_nb: the following applies only to NEWLY CREATED PROJECTS with NEWLY CREATED TASKS_
even though the project i'm trying to delete (called "de" here) has two tasks in the DOM:
localStorage
:
we see that the taskIds
is actually empty in the object being passed to deleteProject()
in appController
:
i will try other ways to resolve
even though the project i'm trying to delete (called "de" here) has two tasks in the DOM:
- these are also in
localStorage
: we see that thetaskIds
is actually empty in the object being passed todeleteProject()
inappController
:i will try other ways to resolve
if i trace this backwards...
displayProjectsInNav.js
calls createProjectLinkInNav
for every project object extracted using .getProjects()
from appController
, which reconstructs project after grabbing all project objects using localStorage helper function retrieveProjects()
fixed in #42
key was that after we add a new task, we need to regenerate the nav bar links. otherwise, those nav project objects being retrieved don't have the latest tasks that you're adding to the project
this blocks #28 and #31
steps to reproduce
projectId: "inbox"
, and no error messages in console.initial debugging attempts identified that although
obj
andtype
variables exist inmodals/handleDelete.js
module (where event listener for confirm delete button click in the modal is attached), by the time we callapp.deleteProject(obj)
,obj
still exists, but when we try andgetTaskIds()
it isn't actually getting the ids...