chore: additional changes for Workflow destroy fails when logic function already
This commit is contained in:
@@ -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)();
|
||||
}
|
||||
|
||||
-12
@@ -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
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user