Skip to content

Commit

Permalink
add correct filtering of unofficial models
Browse files Browse the repository at this point in the history
  • Loading branch information
meganoob1337 committed Sep 23, 2023
1 parent efa854d commit 2ad0d08
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/index/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,12 @@ export const UpdateModelsAvailability = async (): Promise<boolean> => {
let x = [...res.data.models] as IModelType[];
x = x.filter((e) => {
const mName = e.name;
const m2Name = official_models.filter((e) => mName?.includes(e.name));

const m2Name = official_models.filter((e) => mName === e.name);
if (!m2Name?.length) {
return true;
}
return false;
});

core.unofficial_installed_models.set(x);

return true;
Expand Down

0 comments on commit 2ad0d08

Please sign in to comment.