diff --git a/src/renderer/src/components/ModelList/ModelList.tsx b/src/renderer/src/components/ModelList/ModelList.tsx index cb146d3d4c..fa629c0222 100644 --- a/src/renderer/src/components/ModelList/ModelList.tsx +++ b/src/renderer/src/components/ModelList/ModelList.tsx @@ -13,7 +13,7 @@ import { useAppDispatch } from '@renderer/store' import { setModel } from '@renderer/store/assistants' import { Model } from '@renderer/types' import { Button, Flex, Tooltip } from 'antd' -import { groupBy, isEmpty, sortBy, toPairs } from 'lodash' +import { groupBy, sortBy, toPairs } from 'lodash' import { ListCheck, Plus } from 'lucide-react' import React, { memo, startTransition, useCallback, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' @@ -110,30 +110,23 @@ const ModelList: React.FC = ({ providerId }) => { {t('common.models')} - {!isEmpty(models) && } + + + + +