minor fix
This commit is contained in:
parent
54a3c670c5
commit
e7209a2a6e
2
dist/frappe-datatable.cjs.js
vendored
2
dist/frappe-datatable.cjs.js
vendored
@ -1254,7 +1254,7 @@ class DataManager {
|
|||||||
const cells = this.rows.map(row => row[colIndex]);
|
const cells = this.rows.map(row => row[colIndex]);
|
||||||
|
|
||||||
cells.forEach(cell => {
|
cells.forEach(cell => {
|
||||||
const hay = cell.content.toLowerCase();
|
const hay = (cell.content || '').toLowerCase();
|
||||||
const needle = (keyword || '').toLowerCase();
|
const needle = (keyword || '').toLowerCase();
|
||||||
|
|
||||||
if (!needle || hay.includes(needle)) {
|
if (!needle || hay.includes(needle)) {
|
||||||
|
|||||||
2
dist/frappe-datatable.js
vendored
2
dist/frappe-datatable.js
vendored
@ -1253,7 +1253,7 @@ class DataManager {
|
|||||||
const cells = this.rows.map(row => row[colIndex]);
|
const cells = this.rows.map(row => row[colIndex]);
|
||||||
|
|
||||||
cells.forEach(cell => {
|
cells.forEach(cell => {
|
||||||
const hay = cell.content.toLowerCase();
|
const hay = (cell.content || '').toLowerCase();
|
||||||
const needle = (keyword || '').toLowerCase();
|
const needle = (keyword || '').toLowerCase();
|
||||||
|
|
||||||
if (!needle || hay.includes(needle)) {
|
if (!needle || hay.includes(needle)) {
|
||||||
|
|||||||
@ -1253,7 +1253,7 @@ class DataManager {
|
|||||||
const cells = this.rows.map(row => row[colIndex]);
|
const cells = this.rows.map(row => row[colIndex]);
|
||||||
|
|
||||||
cells.forEach(cell => {
|
cells.forEach(cell => {
|
||||||
const hay = cell.content.toLowerCase();
|
const hay = (cell.content || '').toLowerCase();
|
||||||
const needle = (keyword || '').toLowerCase();
|
const needle = (keyword || '').toLowerCase();
|
||||||
|
|
||||||
if (!needle || hay.includes(needle)) {
|
if (!needle || hay.includes(needle)) {
|
||||||
|
|||||||
@ -407,7 +407,7 @@ export default class DataManager {
|
|||||||
const cells = this.rows.map(row => row[colIndex]);
|
const cells = this.rows.map(row => row[colIndex]);
|
||||||
|
|
||||||
cells.forEach(cell => {
|
cells.forEach(cell => {
|
||||||
const hay = cell.content.toLowerCase();
|
const hay = String(cell.content || '').toLowerCase();
|
||||||
const needle = (keyword || '').toLowerCase();
|
const needle = (keyword || '').toLowerCase();
|
||||||
|
|
||||||
if (!needle || hay.includes(needle)) {
|
if (!needle || hay.includes(needle)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user