Fix double trigger of loadColorPalette effect (#2118)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-01-01 19:27:22 -05:00
committed by GitHub
parent 3d2b9a8d9d
commit 39e9f421f4
9 changed files with 34 additions and 16 deletions

View File

@@ -672,7 +672,11 @@ export const CORE_SETTINGS: SettingParams[] = [
name: 'The active color palette id',
type: 'hidden',
defaultValue: 'dark',
versionModified: '1.6.7'
versionModified: '1.6.7',
migrateDeprecatedValue(value: string) {
// Legacy custom palettes were prefixed with 'custom_'
return value.startsWith('custom_') ? value.replace('custom_', '') : value
}
},
{
id: 'Comfy.CustomColorPalettes',