Skip to content

Commit 39d7bf9

Browse files
gnseoMarcusNotheis
andauthored
Update packages/main/src/internal/withWebComponent.tsx
fix(withWebComponent): The argument has default value, so the check logic of argument is no longer needed. Co-Authored-By: Marcus Notheis <[email protected]>
1 parent c04ec3a commit 39d7bf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/main/src/internal/withWebComponent.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const withWebComponent = <T extends any>(
5656
return Object.keys(getWebComponentMetadata().getEvents() || {})
5757
.filter((eventName) => !eventName.startsWith('_'))
5858
.concat(
59-
Object.keys(otherProps === undefined ? {} : otherProps)
59+
Object.keys(otherProps)
6060
.filter((key) => key.startsWith('on'))
6161
.map((key) => key.replace('on', '').toLowerCase())
6262
);

0 commit comments

Comments
 (0)