File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
invokeai/frontend/web/src
app/store/middleware/listenerMiddleware/listeners Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export const addImageUploadedFulfilledListener = () => {
4040 // default action - just upload and alert user
4141 if ( postUploadAction ?. type === 'TOAST' ) {
4242 const { toastOptions } = postUploadAction ;
43- if ( ! autoAddBoardId ) {
43+ if ( ! autoAddBoardId || autoAddBoardId === 'none' ) {
4444 dispatch ( addToast ( { ...DEFAULT_UPLOADED_TOAST , ...toastOptions } ) ) ;
4545 } else {
4646 // Add this image to the board
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ export const gallerySlice = createSlice({
4141 state . galleryView = 'images' ;
4242 } ,
4343 autoAddBoardIdChanged : ( state , action : PayloadAction < BoardId > ) => {
44+ if ( ! action . payload ) {
45+ state . autoAddBoardId = 'none' ;
46+ return ;
47+ }
4448 state . autoAddBoardId = action . payload ;
4549 } ,
4650 galleryViewChanged : ( state , action : PayloadAction < GalleryView > ) => {
You can’t perform that action at this time.
0 commit comments