Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

Fix edit subscription not loading

ellite92da65564bb2
diff --git a/scripts/dashboard.js b/scripts/dashboard.js
index 63cfa0e..1df4ca8 100644
--- a/scripts/dashboard.js
+++ b/scripts/dashboard.js
@@ -62,7 +62,9 @@ function fillEditFormFields(subscription) {
notes.value = subscription.notes;
const notifications = document.querySelector("#notifications");
- notifications.checked = subscription.notify;
+ if (notifications) {
+ notifications.checked = subscription.notify;
+ }
const deleteButton = document.querySelector("#deletesub");
deleteButton.style = 'display: block';