Skip to content

Commit

Permalink
Fix workspace loading
Browse files Browse the repository at this point in the history
  • Loading branch information
idastambuk committed Nov 27, 2023
1 parent 218d7b0 commit 3c66bc9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/datasource/components/ConfigEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,11 @@ export function ConfigEditor(props: Props) {
<>
<Divider />
<ConfigSection title="Twinmaker Settings" data-testid="twinmaker-settings">
<Field label="Workspace" invalid={!!workspacesError} error={workspacesError}>
<Field
label="Workspace"
invalid={!!workspacesError}
error={workspacesError}
>
<Select
menuPlacement="top"
menuShouldPortal={true}
Expand All @@ -123,7 +127,6 @@ export function ConfigEditor(props: Props) {
onCreateOption={onUnknownWorkspaceChange}
formatCreateLabel={(v) => `WorkspaceID: ${v}`}
isClearable={true}
disabled={workspaces?.length === 0}
placeholder="Select a workspace"
noOptionsMessage="No workspaces found"
onOpenMenu={onOpenHandler}
Expand Down

0 comments on commit 3c66bc9

Please sign in to comment.