Skip to content

Commit

Permalink
fix: fix disable button condition in launch jupyter notebook modal (#…
Browse files Browse the repository at this point in the history
…9155)

(cherry picked from commit 384e5c0)
  • Loading branch information
keita-determined authored and determined-ci committed Apr 12, 2024
1 parent ac15a86 commit 4bbc20d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webui/react/src/components/JupyterLabModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ const JupyterLabModalComponent: React.FC<Props> = ({ workspace }: Props) => {
const workspaces = Loadable.getOrElse([], useObservable(workspaceStore.workspaces)).filter(
(workspace) => canCreateWorkspaceNSC({ workspace }),
);
const [currentWorkspace, setCurrentWorkspace] = useState<Workspace | undefined>(workspace);
const [currentWorkspace, setCurrentWorkspace] = useState<Workspace | undefined>(
workspace ?? workspaces.at(0),
);

const validateFullConfigForm = useCallback(() => {
const fields = fullConfigForm.getFieldsError();
Expand Down

0 comments on commit 4bbc20d

Please sign in to comment.