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