File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 1
- import { create } from "zustand" ;
2
- import { persist } from "zustand/middleware" ;
3
-
4
1
import { trimTopic } from "../utils" ;
5
2
6
3
import Locale , { getLang } from "../locales" ;
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ export function limitNumber(
70
70
max : number ,
71
71
defaultValue : number ,
72
72
) {
73
- if ( typeof x !== "number" || isNaN ( x ) ) {
73
+ if ( isNaN ( x ) ) {
74
74
return defaultValue ;
75
75
}
76
76
@@ -133,9 +133,7 @@ export const useAppConfig = createPersistStore(
133
133
. customModels . split ( "," )
134
134
. filter ( ( v ) => ! ! v && v . length > 0 )
135
135
. map ( ( m ) => ( { name : m , available : true } ) ) ;
136
-
137
- const models = get ( ) . models . concat ( customModels ) ;
138
- return models ;
136
+ return get ( ) . models . concat ( customModels ) ;
139
137
} ,
140
138
} ) ,
141
139
{
You can’t perform that action at this time.
0 commit comments