File tree Expand file tree Collapse file tree
web/client/src/library/components/tableDiff Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import clsx from 'clsx'
22import { Fragment , useState } from 'react'
33import {
4+ EMPTY_TABLE_CELL ,
5+ TARGET_PREFIX ,
46 getCellContent ,
57 getCellContentSource ,
68 getCellContentTarget ,
@@ -168,7 +170,8 @@ export default function TableDiff({ diff }: { diff: any }): JSX.Element {
168170 grain . includes ( header ) && 'bg-brand-10' ,
169171 ) }
170172 >
171- { getCellContent ( diff , header , rowKey , diff . on ) }
173+ { getCellContent ( diff , TARGET_PREFIX , header , rowKey ) ??
174+ EMPTY_TABLE_CELL }
172175 </ td >
173176 ) ,
174177 ) }
Original file line number Diff line number Diff line change 11import { isFalse , isNotNil , isNil } from '@utils/index'
22import { type Filters } from './TableDiff'
33
4+ const SOURCE_PREFIX = 's__'
5+ const TARGET_PREFIX = 't__'
6+ const EMPTY_TABLE_CELL = 'NULL'
7+
48export {
9+ SOURCE_PREFIX ,
10+ TARGET_PREFIX ,
11+ EMPTY_TABLE_CELL ,
512 getHeaders ,
613 getRows ,
714 hasModified ,
@@ -13,10 +20,6 @@ export {
1320 getCellContentTarget ,
1421}
1522
16- const SOURCE_PREFIX = 's__'
17- const TARGET_PREFIX = 't__'
18- const EMPTY_TABLE_CELL = 'NULL'
19-
2023function getHeaders (
2124 {
2225 source_schema,
You can’t perform that action at this time.
0 commit comments