TypeError: item[key].includes is not a function
at /home/zhixin/www/blog/routes/examples.js:39:48
at Array.filter (<anonymous>)
at Object.data (/home/zhixin/www/blog/routes/examples.js:39:23)
at module.exports (/home/zhixin/www/blog/routes/examples.js:81:48)
at callbacks (/home/zhixin/www/blog/node_modules/express/lib/router/index.js:164:37)
at param (/home/zhixin/www/blog/node_modules/express/lib/router/index.js:138:11)
at param (/home/zhixin/www/blog/node_modules/express/lib/router/index.js:135:11)
at param (/home/zhixin/www/blog/node_modules/express/lib/router/index.js:135:11)
at pass (/home/zhixin/www/blog/node_modules/express/lib/router/index.js:145:5)
at Router._dispatch (/home/zhixin/www/blog/node_modules/express/lib/router/index.js:173:5)
it is trying to use typical str includes for an integer
I will provide a PR to fix this, but not sure how to make that to be deployed
https://github.com/wenzhixin/bootstrap-table-examples/blob/develop/server/examples.js#L39
Looks the server side fails for integer values:
https://examples.wenzhixin.net.cn/examples/bootstrap_table/data?limit=10&filter=%7B%22name%22%3A%220%22%7D
works
but
https://examples.wenzhixin.net.cn/examples/bootstrap_table/data?limit=10&filter=%7B%22id%22%3A%220%22%7D
shows:
it is trying to use typical str
includes
for an integerI will provide a PR to fix this, but not sure how to make that to be deployed
this comes from https://github.com/wenzhixin/bootstrap-table/issues/6030#issuecomment-1100854575