Cast cell content to string

This commit is contained in:
Faris Ansari 2018-02-27 13:07:51 +05:30
parent e7209a2a6e
commit 5b8be4c5b0
3 changed files with 3 additions and 3 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 = String(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 = String(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 = String(cell.content || '').toLowerCase();
const needle = (keyword || '').toLowerCase();
if (!needle || hay.includes(needle)) {