mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-23 08:14:06 +00:00
Convert pos object to array on parsing (#147)
This commit is contained in:
@@ -45,7 +45,7 @@ const zProperties = z
|
||||
.passthrough();
|
||||
|
||||
const zVector2 = z.union([
|
||||
z.object({ 0: z.number(), 1: z.number() }),
|
||||
z.object({ 0: z.number(), 1: z.number() }).transform((v) => [v[0], v[1]]),
|
||||
z.tuple([z.number(), z.number()]),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user