mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 16:24:06 +00:00
Make ChangeTracker detect changes in workflow.extra (Except ds) (#1692)
* Compare workflow.extra content * Add tests
This commit is contained in:
@@ -388,8 +388,11 @@ export class ChangeTracker {
|
||||
return false
|
||||
}
|
||||
|
||||
// Reroutes (schema 0.4)
|
||||
if (!_.isEqual(a.extra?.reroutes, b.extra?.reroutes)) return false
|
||||
// Compare extra properties ignoring ds
|
||||
if (
|
||||
!_.isEqual(_.omit(a.extra ?? {}, ['ds']), _.omit(b.extra ?? {}, ['ds']))
|
||||
)
|
||||
return false
|
||||
|
||||
// Compare other properties normally
|
||||
for (const key of ['links', 'reroutes', 'groups']) {
|
||||
|
||||
Reference in New Issue
Block a user