query for 'main' model type when populating UI lists

to support renaming of 'pipeline' models to 'main'
This commit is contained in:
Eugene Brodsky 2023-06-26 01:30:21 -04:00
parent 7b97639961
commit 47e651225d
3 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ const App = ({
const isApplicationReady = useIsApplicationReady();
const { data: pipelineModels } = useListModelsQuery({
model_type: 'pipeline',
model_type: 'main',
});
const { data: controlnetModels } = useListModelsQuery({
model_type: 'controlnet',

View File

@ -23,7 +23,7 @@ const ModelInputFieldComponent = (
const { t } = useTranslation();
const { data: pipelineModels } = useListModelsQuery({
model_type: 'pipeline',
model_type: 'main',
});
const data = useMemo(() => {

View File

@ -24,7 +24,7 @@ const ModelSelect = () => {
);
const { data: pipelineModels } = useListModelsQuery({
model_type: 'pipeline',
model_type: 'main',
});
const data = useMemo(() => {