no that's stupid. if not null

This commit is contained in:
MeowcaTheoRange 2024-03-19 22:00:33 -05:00
parent 5df7ceebf3
commit 3dc5f6574b

View file

@ -147,7 +147,8 @@ function readFollowersMap(m) {
const handles = Array.from(el_id_listfollowers.querySelectorAll(".follower_checkname"));
handles.forEach((handle) => {
const checkbox = handle.parentElement.querySelector(".follower_checkbox");
checkbox.checked = m[handle.innerHTML] || true;
if (m[handle.innerHTML] != null)
checkbox.checked = m[handle.innerHTML];
});
}
@ -295,7 +296,8 @@ function readFollowingMap(m) {
const handles = Array.from(el_id_listfollowing.querySelectorAll(".following_checkname"));
handles.forEach((handle) => {
const checkbox = handle.parentElement.querySelector(".following_checkbox");
checkbox.checked = m[handle.innerHTML] || true;
if (m[handle.innerHTML] != null)
checkbox.checked = m[handle.innerHTML];
});
}