diff --git a/src/format/dashboard/format-dashboard-tables.ts b/src/format/dashboard/format-dashboard-tables.ts index ba30aabc12..ca0f3c6a71 100644 --- a/src/format/dashboard/format-dashboard-tables.ts +++ b/src/format/dashboard/format-dashboard-tables.ts @@ -66,7 +66,9 @@ export function processDatatables( kDatatableInit, "let table = new DataTable('#$1', dt_args);", ); - scriptEl.innerText = codeWithInit; + scriptEl.innerText = codeWithInit; + } else { + scriptEl.innerText = codeText; } // Remove the inline css