File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
invokeai/frontend/web/src/app/store/middleware/listenerMiddleware/listeners Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,10 @@ export const addAppConfigReceivedListener = (startAppListening: AppStartListenin
11
11
const infillMethod = getState ( ) . params . infillMethod ;
12
12
13
13
if ( ! infill_methods . includes ( infillMethod ) ) {
14
- // if there is no infill method, set it to the first one
15
- // if there is no first one... god help us
16
- dispatch ( setInfillMethod ( infill_methods [ 0 ] as string ) ) ;
14
+ // If the selected infill method does not exist, prefer 'lama' if it's in the list, otherwise 'tile'.
15
+ // TODO(psyche): lama _should_ always be in the list, but the API doesn't guarantee it...
16
+ const infillMethod = infill_methods . includes ( 'lama' ) ? 'lama' : 'tile' ;
17
+ dispatch ( setInfillMethod ( infillMethod ) ) ;
17
18
}
18
19
19
20
if ( ! nsfw_methods . includes ( 'nsfw_checker' ) ) {
You can’t perform that action at this time.
0 commit comments