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:
Chenlei Hu
2025-02-26 14:15:31 -05:00
committed by GitHub
parent c166a34fd8
commit d20aab757c
5 changed files with 54 additions and 17 deletions

5
src/utils/object.ts Normal file
View 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>
}