Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: fix validation error during workspace creation without preset#18494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SasSwart merged 4 commits intomainfromjjs/18430
Jun 24, 2025
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Update site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx
use option?.value instead of index to check whether we should send a preset ID when a workspace is createdCo-authored-by: Susana Ferreira <susana@coder.com>
  • Loading branch information
@SasSwart@ssncferreira
SasSwart andssncferreira authoredJun 24, 2025
commitfa7411ccf01acedb856252f915aee3eeefe441a6
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -369,7 +369,8 @@ export const CreateWorkspacePageView: FC<CreateWorkspacePageViewProps> = ({
setSelectedPresetIndex(index);
form.setFieldValue(
"template_version_preset_id",
index === 0 ? undefined : option?.value,
// Empty string is equivalent to using None
option?.value === "" ? undefined : option?.value,
);
}}
placeholder="Select a preset"
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp