|
@@ -70,7 +70,7 @@ export function limitNumber(
|
|
|
max: number,
|
|
|
defaultValue: number,
|
|
|
) {
|
|
|
- if (typeof x !== "number" || isNaN(x)) {
|
|
|
+ if (isNaN(x)) {
|
|
|
return defaultValue;
|
|
|
}
|
|
|
|
|
@@ -133,9 +133,7 @@ export const useAppConfig = createPersistStore(
|
|
|
.customModels.split(",")
|
|
|
.filter((v) => !!v && v.length > 0)
|
|
|
.map((m) => ({ name: m, available: true }));
|
|
|
-
|
|
|
- const models = get().models.concat(customModels);
|
|
|
- return models;
|
|
|
+ return get().models.concat(customModels);
|
|
|
},
|
|
|
}),
|
|
|
{
|