mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-12 15:24:55 -05:00
fix(ui): issues with progress viewer
This commit is contained in:
@@ -30,7 +30,6 @@ export const CurrentImageButtons = memo(() => {
|
||||
const ctx = useImageViewerContext();
|
||||
const hasProgressImage = useStore(ctx.$hasProgressImage);
|
||||
const shouldShowProgressInViewer = useAppSelector(selectShouldShowProgressInViewer);
|
||||
|
||||
const isDisabledOverride = hasProgressImage && shouldShowProgressInViewer;
|
||||
|
||||
const imageName = useAppSelector(selectLastSelectedImage);
|
||||
|
||||
@@ -88,6 +88,7 @@ export const CurrentImagePreview = memo(({ imageDTO }: { imageDTO: ImageDTO | nu
|
||||
return;
|
||||
}
|
||||
if (progressEvent.session_id === imageDTO.session_id) {
|
||||
setProgressEvent(null);
|
||||
setProgressImage(null);
|
||||
}
|
||||
}, [imageDTO, progressEvent]);
|
||||
|
||||
Reference in New Issue
Block a user