fix: update model name filtering to be case-sensitive
This commit is contained in:
parent
c21219fcff
commit
e6f78733e1
@ -131,7 +131,7 @@ export default function ModelRatioNotSetEditor(props) {
|
|||||||
// 在 return 语句之前,先处理过滤和分页逻辑
|
// 在 return 语句之前,先处理过滤和分页逻辑
|
||||||
const filteredModels = models.filter((model) =>
|
const filteredModels = models.filter((model) =>
|
||||||
searchText
|
searchText
|
||||||
? model.name.toLowerCase().includes(searchText.toLowerCase())
|
? model.name.includes(searchText)
|
||||||
: true,
|
: true,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@ -99,7 +99,7 @@ export default function ModelSettingsVisualEditor(props) {
|
|||||||
// 在 return 语句之前,先处理过滤和分页逻辑
|
// 在 return 语句之前,先处理过滤和分页逻辑
|
||||||
const filteredModels = models.filter((model) => {
|
const filteredModels = models.filter((model) => {
|
||||||
const keywordMatch = searchText
|
const keywordMatch = searchText
|
||||||
? model.name.toLowerCase().includes(searchText.toLowerCase())
|
? model.name.includes(searchText)
|
||||||
: true;
|
: true;
|
||||||
const conflictMatch = conflictOnly ? model.hasConflict : true;
|
const conflictMatch = conflictOnly ? model.hasConflict : true;
|
||||||
return keywordMatch && conflictMatch;
|
return keywordMatch && conflictMatch;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user