Skip to content

Commit 1050d6e

Browse files
authored
fix type import and missing null check for models (#709)
1 parent b81bf7f commit 1050d6e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

web/client/src/library/components/ide/ActivePlan.tsx

+10-8
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,16 @@ export default function ActivePlan({
8080
}
8181
updatedAt={plan.updated_at}
8282
/>
83-
<TasksOverview.Details
84-
models={models}
85-
showBatches={plan.type !== EnumPlanApplyType.Virtual}
86-
showVirtualUpdate={
87-
plan.type === EnumPlanApplyType.Virtual
88-
}
89-
showProgress={true}
90-
/>
83+
{models != null && (
84+
<TasksOverview.Details
85+
models={models}
86+
showBatches={plan.type !== EnumPlanApplyType.Virtual}
87+
showVirtualUpdate={
88+
plan.type === EnumPlanApplyType.Virtual
89+
}
90+
showProgress={true}
91+
/>
92+
)}
9193
</>
9294
)}
9395
</TasksOverview>

web/client/src/models/file.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { File, FileType } from '../api/client'
1+
import { type File, FileType } from '../api/client'
22
import { type ModelDirectory } from './directory'
33
import { type InitialArtifact, ModelArtifact } from './artifact'
44
import { isStringEmptyOrNil } from '@utils/index'

0 commit comments

Comments
 (0)