Skip to content

Commit 36994c2

Browse files
committed
Coderabbit fixes
1 parent cbd1069 commit 36994c2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/webapp/app/presenters/v3/ModelRegistryPresenter.server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class ModelRegistryPresenter extends BasePresenter {
310310

311311
/** Get a single model with full pricing details. */
312312
async getModelDetail(friendlyId: string): Promise<ModelDetail | null> {
313-
const model = await this._replica.llmModel.findUnique({
313+
const model = await this._replica.llmModel.findFirst({
314314
where: { friendlyId },
315315
include: {
316316
pricingTiers: {

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.models._index/route.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ function CompareDialog({
569569
const environment = useEnvironment();
570570
const fetcher = useFetcher<typeof compareLoader>();
571571

572-
const isLoading = fetcher.state === "loading";
573-
const comparison = (fetcher.data as any)?.comparison as ModelComparisonItem[] | undefined;
572+
const comparison = (fetcher.data as { comparison?: ModelComparisonItem[] } | undefined)
573+
?.comparison;
574574
const rows = useMemo(
575575
() => buildComparisonRows(models, catalogModels, comparison ?? []),
576576
[comparison, models, catalogModels]

0 commit comments

Comments
 (0)