Skip to content

Commit

Permalink
fix: fix get pipeline bug on model page (#174)
Browse files Browse the repository at this point in the history
Because

- #173 

This commit

- Fix get pipeline bug on model page
  • Loading branch information
EiffelFly committed Jul 20, 2022
1 parent e871df9 commit 5e8116d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/models/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const ModelDetailsPage: FC & {

for (const modelInstance of modelInstances.data) {
const targetPipelines = pipelines.data.filter((e) => {
if (e.recipe.models.find((e) => e.id === modelInstance.id)) {
if (e.recipe.models.find((e) => e.name === modelInstance.name)) {
return true;
} else {
false;
Expand Down

0 comments on commit 5e8116d

Please sign in to comment.