[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

@@ -27,7 +27,7 @@ export class ComfySettingsDialog extends ComfyDialog<HTMLDialogElement> {
private tryMigrateDeprecatedValue(id: string, value: any) {
if (this.app.vueAppReady) {
const settingStore = useSettingStore()
const setting = settingStore.settings[id]
const setting = settingStore.settingsById[id]
if (setting?.migrateDeprecatedValue) {
return setting.migrateDeprecatedValue(value)
}
@@ -149,7 +149,7 @@ export class ComfySettingsDialog extends ComfyDialog<HTMLDialogElement> {
this.settingsParamLookup[id] = params
if (this.app.vueAppReady) {
useSettingStore().settings[id] = params
useSettingStore().settingsById[id] = params
}
this.settingsLookup[id] = {
id,