fix conflict

This commit is contained in:
arifal
2025-03-07 14:52:51 +07:00
40 changed files with 817 additions and 220 deletions

View File

@@ -12,6 +12,11 @@ class GeneralTable {
}
init() {
const tableContainer = document.getElementById(this.tableId);
// Kosongkan container sebelum render ulang
tableContainer.innerHTML = "";
const table = new Grid({
columns: this.columns,
search: this.options.search || {
@@ -42,8 +47,8 @@ class GeneralTable {
total: (data) => data.meta.total,
},
});
table.render(document.getElementById(this.tableId));
table.render(tableContainer);
this.handleActions();
}