Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanster committed Jan 5, 2024
1 parent 3081da8 commit f1f18aa
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions web_app/src/lib/states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -405,14 +405,11 @@ export const useStore = createWithEqualityFn<AppState & AppAction>()(
cropperState,
extenderState,
} = get()
if (isInpainting) {
return
}

if (file === null) {
if (isInpainting || file === null) {
return
}
if (
get().settings.model.support_outpainting &&
settings.showExtender &&
extenderState.height === imageHeight &&
extenderState.width === imageWidth
Expand Down

0 comments on commit f1f18aa

Please sign in to comment.