mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 05:04:56 -05:00
lint
This commit is contained in:
committed by
psychedelicious
parent
78a68ac3a7
commit
31f63e38bd
@@ -29,7 +29,8 @@ const ParamTileControlNetModel = () => {
|
||||
}
|
||||
return modelConfigs.filter((model) => {
|
||||
const isCompatible = model.base === currentBaseModel;
|
||||
const isTileOrMultiModel = model.name.toLowerCase().includes('tile') || model.name.toLowerCase().includes('union');
|
||||
const isTileOrMultiModel =
|
||||
model.name.toLowerCase().includes('tile') || model.name.toLowerCase().includes('union');
|
||||
return isCompatible && isTileOrMultiModel;
|
||||
});
|
||||
}, [modelConfigs, currentBaseModel]);
|
||||
@@ -44,7 +45,13 @@ const ParamTileControlNetModel = () => {
|
||||
);
|
||||
|
||||
return (
|
||||
<FormControl isDisabled={!filteredModelConfigs.length} isInvalid={!filteredModelConfigs.length} minW={0} flexGrow={1} gap={2}>
|
||||
<FormControl
|
||||
isDisabled={!filteredModelConfigs.length}
|
||||
isInvalid={!filteredModelConfigs.length}
|
||||
minW={0}
|
||||
flexGrow={1}
|
||||
gap={2}
|
||||
>
|
||||
<InformationalPopover feature="controlNet">
|
||||
<FormLabel m={0}>{t('upscaling.tileControl')}</FormLabel>
|
||||
</InformationalPopover>
|
||||
@@ -62,4 +69,4 @@ const ParamTileControlNetModel = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default memo(ParamTileControlNetModel);
|
||||
export default memo(ParamTileControlNetModel);
|
||||
|
||||
Reference in New Issue
Block a user