Steps to reproduce the issue:
1. Login to site as instructor/admin.
2. Add an assignment to assignment tool.
3. Link the assignment to Lesson builder tool
4. Remove/Delete the assignment from the assignment list.
5. Go to lesson builder tool
Expected result : The assignment that was removed should not show up in Lesson builder
Actual result : The assignment link still shows up in lesson builder and clicking on it, we get an error message that the assignment is not found.
Attached screenshots for reference.