fix(ui): disable clear processor when no processor selected

This commit is contained in:
psychedelicious 2024-05-02 08:46:09 +10:00 committed by Kent Keirsey
parent 6effa19626
commit 9437d701b2

View File

@ -56,8 +56,9 @@ export const ControlAdapterProcessorTypeSelect = memo(({ config, onChange }: Pro
<Combobox value={value} options={options} onChange={_onChange} isSearchable={false} isClearable={false} />
</FormControl>
<IconButton
aria-label={t('controlnet.processor')}
aria-label={t('controlLayers.clearProcessor')}
onClick={clearProcessor}
isDisabled={!config}
icon={<PiXBold />}
variant="ghost"
size="sm"