fix(SEC-WEB-26+29): Remove console.log + fix formatTime error handling
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
- Remove debug console.log from workspaces page and teams page - Fix formatTime to return "Invalid date" fallback instead of empty string when date parsing fails (handles both thrown errors and NaN dates) - Export formatTime and add unit tests for error handling cases Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -61,7 +61,6 @@ function WorkspacesPageContent(): ReactElement {
|
||||
setIsCreating(true);
|
||||
try {
|
||||
// TODO: Replace with real API call
|
||||
console.log("Creating workspace:", newWorkspaceName);
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000)); // Simulate API call
|
||||
alert(`Workspace "${newWorkspaceName}" created successfully!`);
|
||||
setNewWorkspaceName("");
|
||||
|
||||
@@ -45,8 +45,6 @@ function TeamsPageContent(): ReactElement {
|
||||
// description: newTeamDescription || undefined,
|
||||
// });
|
||||
|
||||
console.log("Creating team:", { name: newTeamName, description: newTeamDescription });
|
||||
|
||||
// Reset form
|
||||
setNewTeamName("");
|
||||
setNewTeamDescription("");
|
||||
|
||||
Reference in New Issue
Block a user