mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-19 22:34:15 +00:00
Serialize NodeInputSlot.widget (#622)
Serialize linked widget on node input slot properly according to current
save format in
76818b54e6/src/extensions/core/widgetInputs.ts
This commit is contained in:
5
src/utils/object.ts
Normal file
5
src/utils/object.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function omitBy<T extends object>(obj: T, predicate: (value: any) => boolean): Partial<T> {
|
||||
return Object.fromEntries(
|
||||
Object.entries(obj).filter(([_key, value]) => !predicate(value)),
|
||||
) as Partial<T>
|
||||
}
|
||||
Reference in New Issue
Block a user