mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-26 01:34:07 +00:00
Fix double trigger of loadColorPalette effect (#2118)
Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -143,7 +143,6 @@ export const useColorPaletteService = () => {
|
||||
app.canvas.setDirty(true, true)
|
||||
|
||||
colorPaletteStore.activePaletteId = colorPaletteId
|
||||
settingStore.set('Comfy.ColorPalette', colorPaletteId)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -180,7 +179,7 @@ export const useColorPaletteService = () => {
|
||||
return {
|
||||
addCustomColorPalette: wrapWithErrorHandling(addCustomColorPalette),
|
||||
deleteCustomColorPalette: wrapWithErrorHandling(deleteCustomColorPalette),
|
||||
loadColorPalette: wrapWithErrorHandling(loadColorPalette),
|
||||
loadColorPalette: wrapWithErrorHandlingAsync(loadColorPalette),
|
||||
exportColorPalette: wrapWithErrorHandling(exportColorPalette),
|
||||
importColorPalette: wrapWithErrorHandlingAsync(importColorPalette)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user