Skip to content

Commit 8395834

Browse files
committed
refactor: improve syntax
1 parent c548789 commit 8395834

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/coreui-react/src/components/form/CFormSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const CFormSelect = forwardRef<HTMLSelectElement, CFormSelectProps>(
104104
{...(typeof option === 'object' &&
105105
option.disabled && { disabled: option.disabled })}
106106
{...(typeof option === 'object' &&
107-
option.value !== 'undefined' && { value: option.value })}
107+
option.value !== undefined && { value: option.value })}
108108
key={index}
109109
>
110110
{typeof option === 'string' ? option : option.label}

packages/coreui-react/src/components/table/CTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export const CTable = forwardRef<HTMLTableElement, CTableProps>(
201201
<CTableRow {...(item._props && { ...item._props })} key={index}>
202202
{columnNames &&
203203
columnNames.map((colName: string, index: number) => {
204-
// eslint-disable-next-line unicorn/no-typeof-undefined, unicorn/no-negated-condition
204+
// eslint-disable-next-line unicorn/no-negated-condition
205205
return item[colName] !== undefined ? (
206206
<CTableDataCell
207207
{...(item._cellProps && {

0 commit comments

Comments
 (0)