@@ -35,14 +35,10 @@ export const CatalogTreeTableRow: React.FC<StreamHeaderProps> = ({
35
35
hasError,
36
36
disabled,
37
37
} ) => {
38
- const {
39
- // primaryKey, cursorField,
40
- syncMode,
41
- destinationSyncMode,
42
- } = stream . config ?? { } ;
38
+ const { primaryKey, cursorField, syncMode, destinationSyncMode } = stream . config ?? { } ;
43
39
const isStreamEnabled = stream . config ?. selected ;
44
40
45
- // const { defaultCursorField } = stream.stream ?? {};
41
+ const { defaultCursorField } = stream . stream ?? { } ;
46
42
const syncSchema = useMemo (
47
43
( ) => ( {
48
44
syncMode,
@@ -53,7 +49,7 @@ export const CatalogTreeTableRow: React.FC<StreamHeaderProps> = ({
53
49
54
50
const [ isSelected , selectForBulkEdit ] = useBulkEditSelect ( stream . id ) ;
55
51
56
- // const paths = useMemo(() => primitiveFields.map((field) => field.path), [primitiveFields]);
52
+ const paths = useMemo ( ( ) => primitiveFields . map ( ( field ) => field . path ) , [ primitiveFields ] ) ;
57
53
const fieldCount = fields ?. length ?? 0 ;
58
54
const onRowClick = fieldCount > 0 ? ( ) => onExpand ( ) : undefined ;
59
55
@@ -115,7 +111,7 @@ export const CatalogTreeTableRow: React.FC<StreamHeaderProps> = ({
115
111
path = { cursorType === "sourceDefined" ? defaultCursorField : cursorField }
116
112
onPathChange = { onCursorChange }
117
113
/>
118
- ) } */ }
114
+ ) }
119
115
</ HeaderCell >
120
116
< HeaderCell ellipsis >
121
117
{ pkType && (
@@ -126,7 +122,7 @@ export const CatalogTreeTableRow: React.FC<StreamHeaderProps> = ({
126
122
isMulti
127
123
onPathChange = { onPrimaryKeyChange }
128
124
/>
129
- ) } */ }
125
+ ) }
130
126
</ HeaderCell >
131
127
< Cell >
132
128
< FontAwesomeIcon icon = { faArrowRight } />
0 commit comments