fix(ui): typo in canvas model handler

This commit is contained in:
psychedelicious 2023-12-29 09:22:02 +11:00 committed by Kent Keirsey
parent 38256f97b3
commit 83049a3a5b

View File

@ -36,12 +36,12 @@ export const addTabChangedListener = () => {
return; return;
} }
// need to filter out all the invalid canvas models (currently sdxl & refiner) // need to filter out all the invalid canvas models (currently refiner & any)
const validCanvasModels = mainModelsAdapter const validCanvasModels = mainModelsAdapter
.getSelectors() .getSelectors()
.selectAll(models) .selectAll(models)
.filter((model) => .filter((model) =>
['sd-1', 'sd-2', 'sxdl'].includes(model.base_model) ['sd-1', 'sd-2', 'sdxl'].includes(model.base_model)
); );
const firstValidCanvasModel = validCanvasModels[0]; const firstValidCanvasModel = validCanvasModels[0];