minor fix

This commit is contained in:
Faris Ansari 2018-02-27 12:56:49 +05:30
parent 54a3c670c5
commit e7209a2a6e
4 changed files with 4 additions and 4 deletions

View File

@ -1254,7 +1254,7 @@ class DataManager {
const cells = this.rows.map(row => row[colIndex]);
cells.forEach(cell => {
const hay = cell.content.toLowerCase();
const hay = (cell.content || '').toLowerCase();
const needle = (keyword || '').toLowerCase();
if (!needle || hay.includes(needle)) {

View File

@ -1253,7 +1253,7 @@ class DataManager {
const cells = this.rows.map(row => row[colIndex]);
cells.forEach(cell => {
const hay = cell.content.toLowerCase();
const hay = (cell.content || '').toLowerCase();
const needle = (keyword || '').toLowerCase();
if (!needle || hay.includes(needle)) {

View File

@ -1253,7 +1253,7 @@ class DataManager {
const cells = this.rows.map(row => row[colIndex]);
cells.forEach(cell => {
const hay = cell.content.toLowerCase();
const hay = (cell.content || '').toLowerCase();
const needle = (keyword || '').toLowerCase();
if (!needle || hay.includes(needle)) {

View File

@ -407,7 +407,7 @@ export default class DataManager {
const cells = this.rows.map(row => row[colIndex]);
cells.forEach(cell => {
const hay = cell.content.toLowerCase();
const hay = String(cell.content || '').toLowerCase();
const needle = (keyword || '').toLowerCase();
if (!needle || hay.includes(needle)) {