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

Commit611ca55

Browse files
authored
fix: Use "data" scheme when creating parameters from the site (#3732)
Fixes#3691.
1 parent34d902e commit611ca55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎codersdk/parameters.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ type Parameter struct {
5454
ScopeParameterScope`json:"scope" table:"scope"`
5555
ScopeID uuid.UUID`json:"scope_id" table:"scope id"`
5656
Namestring`json:"name" table:"name"`
57-
SourceSchemeParameterSourceScheme`json:"source_scheme" table:"source scheme"`
58-
DestinationSchemeParameterDestinationScheme`json:"destination_scheme" table:"destination scheme"`
57+
SourceSchemeParameterSourceScheme`json:"source_scheme" table:"source scheme" validate:"ne=none"`
58+
DestinationSchemeParameterDestinationScheme`json:"destination_scheme" table:"destination scheme" validate:"ne=none"`
5959
CreatedAt time.Time`json:"created_at" table:"created at"`
6060
UpdatedAt time.Time`json:"updated_at" table:"updated at"`
6161
}

‎site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
7272
createRequests.push({
7373
name:schema.name,
7474
destination_scheme:schema.default_destination_scheme,
75-
source_scheme:schema.default_source_scheme,
75+
source_scheme:"data",
7676
source_value:value,
7777
})
7878
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp