File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ export function HtmlHistogram(props: HistogramProps) {
3030 const height = 30 ;
3131
3232 const { bins } = useMemo ( ( ) => {
33- console . log ( { original, maxWidth, value } )
3433 const maxBins = maxWidth
3534 ? Math . max ( 0 , Math . floor ( maxWidth / 6 ) * 0.55 )
3635 : 11 ;
Original file line number Diff line number Diff line change @@ -199,12 +199,12 @@ export const createGridStore = () =>
199199 const modifiedFields = columnNames . filter ( ( columnName ) => {
200200 const type = draft . cellTypes [ columnName ] ;
201201 const oldValue =
202- type === 'date' ? d [ columnName ] . toString ( ) : d [ columnName ] ;
202+ type === 'date' ? d [ columnName ] ? .toString ?. ( ) : d [ columnName ] ;
203203 const newD = diffDataMap . get ( id ) ;
204204 const newValue =
205205 type === 'date'
206206 ? // @ts -ignore
207- newD [ columnName ] . toString ( )
207+ newD [ columnName ] ? .toString ?. ( )
208208 : // @ts -ignore
209209 newD [ columnName ] ;
210210 return type === 'object'
@@ -222,7 +222,10 @@ export const createGridStore = () =>
222222 } ) ;
223223 const oldData = parseData (
224224 diffData
225- . filter ( ( d ) => ! newDataMap . get ( d [ idColumnName + '' ] ) )
225+ . filter (
226+ ( d ) =>
227+ ! newDataMap . get ( d [ idColumnName + '' ] ) && d [ idColumnName || '' ]
228+ )
226229 . map ( ( d ) => ( { ...d , __status__ : 'old' } ) ) ,
227230 draft . cellTypes
228231 ) ;
You can’t perform that action at this time.
0 commit comments