diff --git a/app.js b/app.js
index 9b99a99..243248a 100644
--- a/app.js
+++ b/app.js
@@ -532,7 +532,7 @@ function stripQuotes(s) {
/* ─── Instances — Load ───────────────────────────────────────── */
async function instancesLoadRecords() {
const tbody = document.getElementById("inst-table-body");
- tbody.innerHTML = `
|
`;
+ tbody.innerHTML = ` |
`;
try {
const res = await apiFetch(apiUrl(ROUTES.instances), {
headers: apiHeaders(),
@@ -566,12 +566,10 @@ function instancesRender() {
const filtered = instancesRecords.filter((r) => {
if (!search) return true;
return (
- stripQuotes(r.uuid).toLowerCase().includes(search) ||
- stripQuotes(r.agent).toLowerCase().includes(search) ||
- stripQuotes(r.domain).toLowerCase().includes(search) ||
- stripQuotes(r.server ?? "")
- .toLowerCase()
- .includes(search)
+ r.uuid?.toLowerCase().includes(search) ||
+ r.agent?.toLowerCase().includes(search) ||
+ r.email?.toLowerCase().includes(search) ||
+ (r.server ?? "").toLowerCase().includes(search)
);
});
@@ -582,7 +580,7 @@ function instancesRender() {
const tbody = document.getElementById("inst-table-body");
if (filtered.length === 0) {
- tbody.innerHTML = `
+ tbody.innerHTML = `
| |