Commit 7d972851 by Seefs Committed by GitHub

Merge pull request #1680 from HynoR/fix/res

fix: update model name filtering to be case-sensitive
parents 99afd05d e6f78733
...@@ -131,7 +131,7 @@ export default function ModelRatioNotSetEditor(props) { ...@@ -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,
); );
......
...@@ -100,7 +100,7 @@ export default function ModelSettingsVisualEditor(props) { ...@@ -100,7 +100,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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment