mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
cleanup
This commit is contained in:
parent
cbce89162b
commit
e1a718b512
@ -15,7 +15,7 @@ const ParamSpandrelModel = ({ isMultidiffusion }: Props) => {
|
||||
const { t } = useTranslation();
|
||||
const [modelConfigs, { isLoading }] = useSpandrelImageToImageModels();
|
||||
|
||||
const model = useAppSelector((s) => isMultidiffusion ? s.upscale.upscaleModel : s.upscale.simpleUpscaleModel);
|
||||
const model = useAppSelector((s) => (isMultidiffusion ? s.upscale.upscaleModel : s.upscale.simpleUpscaleModel));
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const tooltipLabel = useMemo(() => {
|
||||
@ -30,7 +30,7 @@ const ParamSpandrelModel = ({ isMultidiffusion }: Props) => {
|
||||
if (isMultidiffusion) {
|
||||
dispatch(upscaleModelChanged(v));
|
||||
} else {
|
||||
dispatch(simpleUpscaleModelChanged(v))
|
||||
dispatch(simpleUpscaleModelChanged(v));
|
||||
}
|
||||
},
|
||||
[isMultidiffusion, dispatch]
|
||||
|
Loading…
Reference in New Issue
Block a user