Skip to content

Commit

Permalink
fix: fix setup model step issue (#7)
Browse files Browse the repository at this point in the history
- Because 

When create pipeline, upon the creation of model, backend will return 404.

- This commit

Fix above issue
  • Loading branch information
EiffelFly committed Jun 10, 2022
1 parent feaf408 commit c5a4222
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ const CreateNewModelFlow: FC<CreateNewModelFlowProps> = ({
string | undefined
>();

const modelInstances = useModelInstances(newModel ? newModel.id : null);
const modelInstances = useModelInstances(newModel ? newModel.name : null);
const modelInstanceOptions = useMemo(() => {
if (!modelInstances.isSuccess || !modelInstances.data) return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ const UseExistingModelFlow: FC<UseExistingModelFlowProps> = ({
(e) => e.name === values.model.existing.modelInstanceName
);

console.log(targetModelInstance);

if (!targetModelInstance) return;

const instanceNameList = targetModelInstance.name.split("/");
Expand Down

0 comments on commit c5a4222

Please sign in to comment.