tidy(ui): suffix a control adapter types/objects with V2

Prevent mixing the old and new implementations up
This commit is contained in:
psychedelicious
2024-05-02 16:06:06 +10:00
committed by Kent Keirsey
parent f9555f03f5
commit 2cde8a643e
18 changed files with 126 additions and 122 deletions

View File

@ -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;