no that's stupid. if not null
This commit is contained in:
parent
5df7ceebf3
commit
3dc5f6574b
1 changed files with 4 additions and 2 deletions
|
@ -147,7 +147,8 @@ function readFollowersMap(m) {
|
||||||
const handles = Array.from(el_id_listfollowers.querySelectorAll(".follower_checkname"));
|
const handles = Array.from(el_id_listfollowers.querySelectorAll(".follower_checkname"));
|
||||||
handles.forEach((handle) => {
|
handles.forEach((handle) => {
|
||||||
const checkbox = handle.parentElement.querySelector(".follower_checkbox");
|
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"));
|
const handles = Array.from(el_id_listfollowing.querySelectorAll(".following_checkname"));
|
||||||
handles.forEach((handle) => {
|
handles.forEach((handle) => {
|
||||||
const checkbox = handle.parentElement.querySelector(".following_checkbox");
|
const checkbox = handle.parentElement.querySelector(".following_checkbox");
|
||||||
checkbox.checked = m[handle.innerHTML] || true;
|
if (m[handle.innerHTML] != null)
|
||||||
|
checkbox.checked = m[handle.innerHTML];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue