@rainbow-oh/yee-c 0.8.7 → 0.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainbow-oh/yee-c",
3
- "version": "0.8.7",
3
+ "version": "0.8.8",
4
4
  "description": "yee basic components",
5
5
  "keywords": [
6
6
  "react",
@@ -49,12 +49,12 @@ export default function useFilter({
49
49
  return handled.find((o) => {
50
50
  if (Array.isArray(o.value)) {
51
51
  return o.value.some((v) => {
52
- const t = item[o.dataIndex];
52
+ const t = item[o.dataIndex] || '';
53
53
  return (t as string).toLowerCase() === v.toLowerCase();
54
54
  });
55
55
  } else {
56
56
  const v = o.value.toLowerCase();
57
- const t = item[o.dataIndex];
57
+ const t = item[o.dataIndex] || '';
58
58
  return (t as string).toLowerCase().includes(v);
59
59
  }
60
60
  });
package/src/version.ts CHANGED
@@ -4,7 +4,7 @@ declare global {
4
4
  }
5
5
  }
6
6
 
7
- export const version = "0.8.7";
7
+ export const version = "0.8.8";
8
8
 
9
9
  if (typeof window !== 'undefined') {
10
10
  window.__yee_c_version__ = version;