File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ const determineLogLevel = (text: string): string => {
4949const stripAnsiCodes = ( text : string ) : string => {
5050 const ESC = '\u001b' ;
5151 // This regex removes all ANSI escape sequences (color codes)
52- return text . replace ( new RegExp ( `${ ESC } \\[[0-9;]*m` , 'g' ) , '' ) ;
52+ return text ? .replace ( new RegExp ( `${ ESC } \\[[0-9;]*m` , 'g' ) , '' ) ;
5353} ;
5454
5555/**
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const Settings = () => {
5555
5656 const newMigrationData = useSelector ( ( state : RootState ) => state ?. migration ?. newMigrationData ) ;
5757
58- const active_state = newMigrationData ?. settings . active_state ;
58+ const active_state = newMigrationData ?. settings ? .active_state ;
5959
6060 const currentStep = useSelector (
6161 ( state : RootState ) => state ?. migration ?. newMigrationData ?. project_current_step
@@ -156,7 +156,7 @@ const Settings = () => {
156156
157157 const handleBack = ( ) => {
158158 navigate ( `/projects/${ params ?. projectId } /migration/steps/${ currentStep } ` ) ;
159- dispatch ( updateNewMigrationData ( { ...newMigrationData , settings : DEFAULT_NEW_MIGRATION . settings } ) ) ;
159+ dispatch ( updateNewMigrationData ( { ...newMigrationData , settings : DEFAULT_NEW_MIGRATION ? .settings } ) ) ;
160160 } ;
161161
162162 const handleClick = ( ) => {
Original file line number Diff line number Diff line change @@ -185,9 +185,7 @@ const ExecutionLogs = () => {
185185 ) ;
186186 } ;
187187
188- const onClose = ( ) => {
189- console . info ( 'on modal close' ) ;
190- } ;
188+ const onClose = ( ) => undefined ;
191189
192190 const handleModaleClick = ( data : LogEntry ) => {
193191 cbModal ( {
You can’t perform that action at this time.
0 commit comments