This commit is contained in:
Mary Hipp 2024-08-08 15:07:58 -04:00
parent 3189ab6863
commit 6461f4758d

View File

@ -11,10 +11,10 @@ import {
promptsChanged,
} from 'features/dynamicPrompts/store/dynamicPromptsSlice';
import { getShouldProcessPrompt } from 'features/dynamicPrompts/util/getShouldProcessPrompt';
import { getPresetModifiedPrompts } from 'features/nodes/util/graph/graphBuilderUtils';
import { activeStylePresetChanged } from 'features/stylePresets/store/stylePresetSlice';
import { utilitiesApi } from 'services/api/endpoints/utilities';
import { socketConnected } from 'services/events/actions';
import { getPresetModifiedPrompts } from '../../../../../features/nodes/util/graph/graphBuilderUtils';
import { activeStylePresetChanged } from '../../../../../features/stylePresets/store/stylePresetSlice';
const matcher = isAnyOf(
positivePromptChanged,
@ -31,7 +31,7 @@ export const addDynamicPromptsListener = (startAppListening: AppStartListening)
effect: async (action, { dispatch, getState, cancelActiveListeners, delay }) => {
cancelActiveListeners();
const state = getState();
const { positivePrompt } = getPresetModifiedPrompts(state)
const { positivePrompt } = getPresetModifiedPrompts(state);
const { maxPrompts } = state.dynamicPrompts;
if (state.config.disabledFeatures.includes('dynamicPrompting')) {