I am getting such an error in datatable.

I am getting such an error in datatable.

Uncaught TypeError: Cannot read properties of undefined (reading 'innerHTML')

n = moment(e[5].innerHTML, "DD MMM YYYY, LT").format();

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)

It was fixed when I updated list.js like this.
/dist/assets/js/custom/apps/subscriptions/list/list.js

"use strict";
var KTSubscriptionsList = function() {
var t, e, n, o, c, r
return {
init: function() {
(t = document.getElementById("kt_subscriptions_table")) && (t.querySelectorAll("tbody tr").forEach((t => {
const e = t.querySelectorAll("td")
})), (e = $(t).DataTable({
info: !1,
order: [],
pageLength: 10,
lengthChange: !1

})), document.querySelector('[data-kt-subscription-table-filter="search"]').addEventListener("keyup", (function(t) {
e.search(t.target.value).draw()
})), function() {
const t = document.querySelector('[data-kt-subscription-table-filter="form"]'),
n = t.querySelector('[data-kt-subscription-table-filter="filter"]'),
o = t.querySelector('[data-kt-subscription-table-filter="reset"]'),
c = t.querySelectorAll("select");
n.addEventListener("click", (function() {
var t = "";
c.forEach(((e, n) => {
e.value && "" !== e.value && (0 !== n && (t += " "), t += e.value)
})), e.search(t).draw()
})), o.addEventListener("click", (function() {
c.forEach(((t, e) => {
$(t).val(null).trigger("change")
})), e.search("").draw()
}))
}())
}
}
}();
KTUtil.onDOMContentLoaded((function() {
KTSubscriptionsList.init()
}));

Hi happy,

Glad to hear that. All the best with your projects!

Regards.

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(