Skip to content

Commit 6115715

Browse files
committed
remove unused ts-expect-error
1 parent ea3d587 commit 6115715

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

packages/main/src/components/DynamicPageTitle/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ const enhanceActionsWithClick = (actions, ref: MutableRefObject<PopoverDomRef>)
9797
flattenFragments(actions, Infinity).map((action) => {
9898
if (isValidElement(action)) {
9999
return cloneElement(action, {
100-
// @ts-expect-error: only actionable elements should be passed to either of the `action` props
101100
onClick: (e) => {
102101
if (typeof action.props?.onClick === 'function') {
103102
action.props.onClick(e);

packages/main/src/components/FormItem/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ const FormItem = (props: FormItemPropTypes) => {
161161
const childId = child?.props?.id;
162162
return (
163163
<Fragment key={`${content}-${uniqueId}-${index}`}>
164-
{/*@ts-expect-error: child is ReactElement*/}
165164
{cloneElement(child, { id: childId ?? `${uniqueId}-${index}` })}
166165
<label htmlFor={childId ?? `${uniqueId}-${index}`} style={{ display: 'none' }} aria-hidden={true}>
167166
{content}

0 commit comments

Comments
 (0)