Skip to content

Commit

Permalink
destroy dtbulk when table is reinitiated
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswilm committed Feb 9, 2025
1 parent 23c9eac commit 78912ec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion fiduswriter/book/static/js/modules/books/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ export class BookOverview {
initTable(searching = false) {
if (this.table) {
this.table.destroy()
this.table = false
this.table = null
}
if (this.dtBulk) {
this.dtBulk.destroy()
this.dtBulk = null
}
const subdirs = {}
const tableEl = document.createElement("table")
Expand Down Expand Up @@ -604,6 +608,11 @@ export class BookOverview {
close() {
if (this.table) {
this.table.destroy()
this.table = null
}
if (this.dtBulk) {
this.dtBulk.destroy()
this.dtBulk = null
}
if (this.menu) {
this.menu.destroy()
Expand Down

0 comments on commit 78912ec

Please sign in to comment.