[Refactor] Rename settingStore.settings to settingsById (#2081)

This commit is contained in:
Chenlei Hu
2024-12-28 17:39:40 -05:00
committed by GitHub
parent ab33eb6262
commit 5152985656
4 changed files with 9 additions and 9 deletions

View File

@@ -188,7 +188,7 @@ const searchResults = computed<ISettingGroup[]>(() => {
const groupedSettings: { [key: string]: SettingParams[] } = {}
filteredSettingIds.value.forEach((id) => {
const setting = settingStore.settings[id]
const setting = settingStore.settingsById[id]
const info = getSettingInfo(setting)
const groupLabel = info.subCategory
@@ -215,7 +215,7 @@ const searchResults = computed<ISettingGroup[]>(() => {
const searchResultsCategories = computed<Set<string>>(() => {
return new Set(
filteredSettingIds.value.map(
(id) => getSettingInfo(settingStore.settings[id]).category
(id) => getSettingInfo(settingStore.settingsById[id]).category
)
)
})