Skip to content

Commit 46651dc

Browse files
committed
Removed debug console.log() or replaced with console.error().
1 parent e72b10a commit 46651dc

File tree

5 files changed

+6
-13
lines changed

5 files changed

+6
-13
lines changed

web-ui/src/components/checkin/documents/CheckinDocs.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const UploadDocs = () => {
5656
});
5757
}
5858
} catch (e) {
59-
console.log(e);
59+
console.error("getCheckinFiles: " + e);
6060
}
6161
}
6262
if (csrf) {
@@ -98,7 +98,7 @@ const UploadDocs = () => {
9898
setFiles([...files, data]);
9999
} catch (e) {
100100
setFileColors(fileColors => ({ ...fileColors, [file.name]: 'red' }));
101-
console.log({ e });
101+
console.error("addFiles: " + e);
102102
} finally {
103103
setLoading(false);
104104
}

web-ui/src/components/notes/Note.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ const Notes = props => {
8585
}
8686
}
8787
} catch (e) {
88-
console.log(e);
88+
console.error("getNotes: " + e);
8989
}
9090
setIsLoading(false);
9191
}

web-ui/src/components/private-note/PrivateNote.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const PrivateNote = () => {
9191
}
9292
}
9393
} catch (e) {
94-
console.log(e);
94+
console.error("getPrivateNotes: " + e);
9595
}
9696
setIsLoading(false);
9797
}

web-ui/src/pages/EditPermissionsPage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const EditPermissionsPage = () => {
229229
}
230230
});
231231
} else {
232-
console.log(res?.error);
232+
console.error(res?.error);
233233
window.snackDispatch({
234234
type: UPDATE_TOAST,
235235
payload: {
@@ -253,7 +253,7 @@ const EditPermissionsPage = () => {
253253
}
254254
});
255255
} else {
256-
console.log(res?.error);
256+
console.error(res?.error);
257257
window.snackDispatch({
258258
type: UPDATE_TOAST,
259259
payload: {

web-ui/src/pages/FeedbackRequestPage.jsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,6 @@ const FeedbackRequestPage = () => {
191191
return hasFor() && templateIsValid && hasFrom();
192192
} else if (activeStep === 3) {
193193
const dueQueryValid = query.due ? isValidDate(query.due) : true;
194-
console.log({
195-
hasFor: hasFor(),
196-
templateIsValid,
197-
hasFrom: hasFrom(),
198-
hasSend: hasSend(),
199-
dueQueryValid
200-
});
201194
return (
202195
hasFor() && templateIsValid && hasFrom() && hasSend() && dueQueryValid
203196
);

0 commit comments

Comments
 (0)