diff --git a/package.json b/package.json index 57c3bf48..c15a6e46 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@babel/preset-typescript": "^7.28.5", "@babel/runtime": "^7.26.10", "@mll-lab/eslint-config": "^3.1.0", - "@mll-lab/eslint-plugin": "^1.3.4", + "@mll-lab/eslint-plugin": "^1.4.0", "@mll-lab/prettier-config": "^1.0.0", "@mll-lab/tsconfig": "^3.0.0", "@rollup/plugin-babel": "^6.0.4", diff --git a/src/Collapse/SingleCollapse.tsx b/src/Collapse/SingleCollapse.tsx index 858f51dc..0d6aa060 100644 --- a/src/Collapse/SingleCollapse.tsx +++ b/src/Collapse/SingleCollapse.tsx @@ -20,7 +20,7 @@ export function SingleCollapse({ collapse, panel, }: SingleCollapseProps) { - const isControlled = collapse?.open !== undefined; + const isControlled = collapse?.open != null; if (isControlled) { return ( { - if (availableWidth === undefined) return; + if (availableWidth == null) return; const totalColumnOverhead = COLUMN_OVERHEAD * COLUMN_COUNT; const availableContentWidth = diff --git a/yarn.lock b/yarn.lock index c9d8a04b..b73be674 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2729,14 +2729,14 @@ __metadata: languageName: node linkType: hard -"@mll-lab/eslint-plugin@npm:^1.3.4": - version: 1.3.4 - resolution: "@mll-lab/eslint-plugin@npm:1.3.4" +"@mll-lab/eslint-plugin@npm:^1.4.0": + version: 1.4.0 + resolution: "@mll-lab/eslint-plugin@npm:1.4.0" dependencies: "@typescript-eslint/experimental-utils": "npm:^5.62" peerDependencies: eslint: ^8.8.0 - checksum: 10c0/228442c1ddaccf094e0fd4e2d7116fbbac29977d4ba12d7c4b435453f730a4a93c66c428f9df8afacb26bcd5e728ea51404a556b1f9bf4053243e1d68d3cbcdd + checksum: 10c0/695c1f8720a89418222c63f527e03a898eca8d325549685b40b52fe31ddd252517501aebf76effca003f7acada303bc6ca316845c16837b53800c89f57d44cc9 languageName: node linkType: hard @@ -2773,7 +2773,7 @@ __metadata: "@babel/runtime": "npm:^7.26.10" "@dnd-kit/core": "npm:^6.0.8" "@mll-lab/eslint-config": "npm:^3.1.0" - "@mll-lab/eslint-plugin": "npm:^1.3.4" + "@mll-lab/eslint-plugin": "npm:^1.4.0" "@mll-lab/js-utils": "npm:^2.41.0" "@mll-lab/prettier-config": "npm:^1.0.0" "@mll-lab/tsconfig": "npm:^3.0.0"