Fix edit subscription not loading
This commit is contained in:
parent
e4b8b8d4a0
commit
92da65564b
@ -62,7 +62,9 @@ function fillEditFormFields(subscription) {
|
|||||||
notes.value = subscription.notes;
|
notes.value = subscription.notes;
|
||||||
|
|
||||||
const notifications = document.querySelector("#notifications");
|
const notifications = document.querySelector("#notifications");
|
||||||
notifications.checked = subscription.notify;
|
if (notifications) {
|
||||||
|
notifications.checked = subscription.notify;
|
||||||
|
}
|
||||||
|
|
||||||
const deleteButton = document.querySelector("#deletesub");
|
const deleteButton = document.querySelector("#deletesub");
|
||||||
deleteButton.style = 'display: block';
|
deleteButton.style = 'display: block';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user