Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
marikaner committed Sep 3, 2024
1 parent 88ae3f2 commit cf0345e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gen-ai-hub/src/utils/deployment-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function getCacheEntriesForModelsWithoutVersion(
}

function getCacheEntriesForNoModel(cacheEntries: Deployment[]): Deployment[] {
return cacheEntries[0].model
return cacheEntries[0]?.model
? [{ ...cacheEntries[0], model: undefined }]
: [];
}
Expand Down

0 comments on commit cf0345e

Please sign in to comment.