Closed rpineda26 closed 11 months ago
🛠️ Fix: The bug was caused by a small oversight when reusing code from other parts of the codebase. This was written down... ...instead of this... ...causing a "cannot read properties of null" error to occur.
New Output/Behavior: The delete button for deleting elements now works as intended.
💾 Description: In the admin view, all deletable objects (project, event, newsletter, etc.) cannot be deleted because the delete button is not working when clicked. This bug should've been introduced in the newer commits as the running live server based on an older version of the repository seems to be working fine. ⏰ Expected Outcome: Clicking the delete button should delete the object both in the frontend and in the database.
☎️ Actual Outcome: Clicking the delete button does nothing to the website and some errors are raised in the inspect tool of the browser. 🎶 Steps to Reproduce: