Skip to content

Commit

Permalink
fix(platform): should be empty until select list inited
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Dec 5, 2022
1 parent 2984169 commit a9823b2
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ export function AppDeviceModal(props: AppDeviceModalProps): JSX.Element | null {
</DForm.Item>
<DForm.Item dFormControls={{ model: 'Please select model!' }} dLabel="Model">
{({ model }) => (
<DSelect dFormControl={model} dList={aModelList ?? []} dLoading={isUndefined(aModelList)} dPlaceholder="Model" dClearable />
<DSelect
dFormControl={aModelList ? model : undefined}
dList={aModelList ?? []}
dLoading={isUndefined(aModelList)}
dPlaceholder="Model"
dClearable
/>
)}
</DForm.Item>
</DForm.Group>
Expand Down

0 comments on commit a9823b2

Please sign in to comment.