mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-07 08:30:06 +00:00
[Refactor] Use util.clone in mergeIfValid (#2752)
This commit is contained in:
@@ -28,7 +28,7 @@ function formatDate(text: string, date: Date) {
|
||||
})
|
||||
}
|
||||
|
||||
export function clone(obj: any) {
|
||||
export function clone<T>(obj: T): T {
|
||||
try {
|
||||
if (typeof structuredClone !== 'undefined') {
|
||||
return structuredClone(obj)
|
||||
|
||||
Reference in New Issue
Block a user