next-helios-fe 1.6.17 → 1.6.18

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": "next-helios-fe",
3
- "version": "1.6.17",
3
+ "version": "1.6.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -116,12 +116,14 @@ export const Table: TableComponentProps = ({
116
116
  }, [checkbox?.checked]);
117
117
 
118
118
  useEffect(() => {
119
- checkbox?.onChange &&
120
- checkbox?.onChange({
121
- target: {
122
- checked: selected,
123
- },
124
- });
119
+ if (selected && selected?.length !== 0) {
120
+ checkbox?.onChange &&
121
+ checkbox?.onChange({
122
+ target: {
123
+ checked: selected,
124
+ },
125
+ });
126
+ }
125
127
  }, [selected]);
126
128
 
127
129
  useEffect(() => {