From d0016bac0ba8fd174de64777dadf022209da071f Mon Sep 17 00:00:00 2001 From: Bhanu Prakash Sai Potteri Date: Sat, 23 May 2026 00:03:44 +0530 Subject: [PATCH] Send instance_id as int64 on form-screens (server typed as int64) --- src/api/viewService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/viewService.ts b/src/api/viewService.ts index 19595f2..c1c1e69 100644 --- a/src/api/viewService.ts +++ b/src/api/viewService.ts @@ -257,10 +257,13 @@ export function getFormScreen( instanceId?: string, deviceType = "desktop", ): Promise { + const numericInstanceId = instanceId ? Number(instanceId) : undefined; return request("POST", `/app/${APP_ID}/view/form-screens`, { activity_id: activityId, device_type: deviceType, - ...(instanceId ? { instance_id: instanceId } : {}), + ...(numericInstanceId && !Number.isNaN(numericInstanceId) + ? { instance_id: numericInstanceId } + : {}), }); }