fix: Rename loading vars for consistency

This commit is contained in:
blessedcoolant 2023-07-31 15:02:12 +12:00 committed by psychedelicious
parent ce687b28ef
commit f404669831

View File

@ -35,7 +35,7 @@ const ModelList = (props: ModelListProps) => {
const [modelFormatFilter, setModelFormatFilter] =
useState<CombinedModelFormat>('all');
const { filteredDiffusersModels, isDiffusersModelLoading } =
const { filteredDiffusersModels, isLoadingDiffusersModels } =
useGetMainModelsQuery(ALL_BASE_MODELS, {
selectFromResult: ({ data, isLoading }) => ({
filteredDiffusersModels: modelsFilter(
@ -44,11 +44,11 @@ const ModelList = (props: ModelListProps) => {
'diffusers',
nameFilter
),
isDiffusersModelLoading: isLoading,
isLoadingDiffusersModels: isLoading,
}),
});
const { filteredCheckpointModels, isCheckpointModelLoading } =
const { filteredCheckpointModels, isLoadingCheckpointModels } =
useGetMainModelsQuery(ALL_BASE_MODELS, {
selectFromResult: ({ data, isLoading }) => ({
filteredCheckpointModels: modelsFilter(
@ -57,7 +57,7 @@ const ModelList = (props: ModelListProps) => {
'checkpoint',
nameFilter
),
isCheckpointModelLoading: isLoading,
isLoadingCheckpointModels: isLoading,
}),
});