chore: additional changes for Workflow destroy fails when logic function already

This commit is contained in:
Sonarly Claude Code
2026-03-06 20:51:06 +00:00
parent 85bc9bfad7
commit bcf89d737f
2 changed files with 1 additions and 13 deletions
@@ -144,7 +144,7 @@ export const CreateWorkspace = () => {
);
const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
if (event.key === Key.Enter && !isSubmitting) {
if (event.key === Key.Enter) {
event.preventDefault();
handleSubmit(onSubmit)();
}
@@ -304,18 +304,6 @@ export class WorkspaceService extends TypeOrmQueryService<WorkspaceEntity> {
throw new BadRequestException("'displayName' not provided");
}
if (
workspace.activationStatus === WorkspaceActivationStatus.ACTIVE
) {
this.logger.log(
`Workspace ${workspace.id} is already active, returning existing workspace`,
);
return await this.workspaceRepository.findOneBy({
id: workspace.id,
});
}
if (
workspace.activationStatus === WorkspaceActivationStatus.ONGOING_CREATION
) {