Skip to content

Commit c8ac2a1

Browse files
committed
fix lint
1 parent b0fd695 commit c8ac2a1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/components/connection-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const ConnectionContext: FC = () => {
7878
className: "w-3.5 h-3.5 shrink-0 text-primary",
7979
})}
8080
{segments.map((segment, i) => (
81-
<span key={i} className="flex items-center gap-1 shrink-0">
81+
<span key={segment} className="flex items-center gap-1 shrink-0">
8282
{i > 0 && <ChevronRightIcon className="w-3 h-3 shrink-0 opacity-40" />}
8383
<span>{segment}</span>
8484
</span>

frontend/src/pages/storage-unit/explore-storage-unit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ export const ExploreStorageUnit: FC = () => {
10981098
<Input
10991099
value={addRowData[col.Name] ?? ""}
11001100
onChange={e =>{ handleAddRowFieldChange(col.Name, e.target.value); }}
1101-
placeholder={hasDefault ? `Default: ${constraint!.DefaultValue}` : isIdentity ? t('autoGeneratedPlaceholder') : `Enter value for ${col.Name}`}
1101+
placeholder={hasDefault ? `Default: ${constraint?.DefaultValue}` : isIdentity ? t('autoGeneratedPlaceholder') : `Enter value for ${col.Name}`}
11021102
{...getInputPropsForColumnType(col.Type || '')}
11031103
/>
11041104
</div>

0 commit comments

Comments
 (0)