This commit is contained in:
Mary Hipp 2024-05-08 15:47:27 -04:00 committed by Mary Hipp Rogers
parent 5820579237
commit 03c24ca9cb
2 changed files with 2 additions and 2 deletions

View File

@ -16,6 +16,7 @@ import ParamUpscalePopover from 'features/parameters/components/Upscale/ParamUps
import { useIsQueueMutationInProgress } from 'features/queue/hooks/useIsQueueMutationInProgress';
import { useFeatureStatus } from 'features/system/hooks/useFeatureStatus';
import { selectSystemSlice } from 'features/system/store/systemSlice';
import { setActiveTab } from 'features/ui/store/uiSlice';
import { useGetAndLoadEmbeddedWorkflow } from 'features/workflowLibrary/hooks/useGetAndLoadEmbeddedWorkflow';
import { memo, useCallback } from 'react';
import { useHotkeys } from 'react-hotkeys-hook';
@ -30,7 +31,6 @@ import {
PiRulerBold,
} from 'react-icons/pi';
import { useGetImageDTOQuery } from 'services/api/endpoints/images';
import { setActiveTab } from '../../../ui/store/uiSlice';
const selectShouldDisableToolbarButtons = createSelector(
selectSystemSlice,

View File

@ -38,7 +38,7 @@ export const usePreselectedImage = (selectedImage?: {
const handleSendToImg2Img = useCallback(() => {
if (selectedImageDto) {
dispatch(iiLayerAdded(selectedImageDto));
dispatch(setActiveTab("generation"))
dispatch(setActiveTab('generation'));
}
}, [dispatch, selectedImageDto]);