Skip to content

Commit 3a38240

Browse files
committed
comments reolved: null check added, console removed
1 parent ab45a0e commit 3a38240

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

api/src/services/runCli.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const determineLogLevel = (text: string): string => {
4949
const 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
/**

ui/src/components/Common/Settings/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 = () => {

ui/src/components/ExecutionLogs/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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({

0 commit comments

Comments
 (0)