mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
tidy(ui): suffix a control adapter types/objects with V2
Prevent mixing the old and new implementations up
This commit is contained in:
committed by
Kent Keirsey
parent
f9555f03f5
commit
2cde8a643e
@ -5,7 +5,7 @@ import {
|
||||
buildIPAdapter,
|
||||
buildT2IAdapter,
|
||||
CA_PROCESSOR_DATA,
|
||||
isProcessorType,
|
||||
isProcessorTypeV2,
|
||||
} from 'features/controlLayers/util/controlAdapters';
|
||||
import { zModelIdentifierField } from 'features/nodes/types/common';
|
||||
import { useCallback, useMemo } from 'react';
|
||||
@ -30,7 +30,7 @@ export const useAddCALayer = () => {
|
||||
|
||||
const id = uuidv4();
|
||||
const defaultPreprocessor = model.default_settings?.preprocessor;
|
||||
const processorConfig = isProcessorType(defaultPreprocessor)
|
||||
const processorConfig = isProcessorTypeV2(defaultPreprocessor)
|
||||
? CA_PROCESSOR_DATA[defaultPreprocessor].buildDefaults(baseModel)
|
||||
: null;
|
||||
|
||||
|
Reference in New Issue
Block a user