client: workaround for #545, but not a fix

This commit is contained in:
neobooru 2023-01-24 22:19:24 +01:00
parent e3062b1c77
commit d7d2a151a8

View file

@ -53,12 +53,14 @@ class PostListController {
this._evtNavigate(e)
);
this._headerView._bulkDeleteEditor.addEventListener(
"deleteSelectedPosts",
(e) => {
this._evtDeleteSelectedPosts(e);
}
);
if (this._headerView._bulkDeleteEditor) {
this._headerView._bulkDeleteEditor.addEventListener(
"deleteSelectedPosts",
(e) => {
this._evtDeleteSelectedPosts(e);
}
);
}
this._postsMarkedForDeletion = [];
this._syncPageController();