Send instance_id as int64 on form-screens (server typed as int64)
This commit is contained in:
parent
d9a911facf
commit
d0016bac0b
@ -257,10 +257,13 @@ export function getFormScreen(
|
|||||||
instanceId?: string,
|
instanceId?: string,
|
||||||
deviceType = "desktop",
|
deviceType = "desktop",
|
||||||
): Promise<FormScreenResponse> {
|
): Promise<FormScreenResponse> {
|
||||||
|
const numericInstanceId = instanceId ? Number(instanceId) : undefined;
|
||||||
return request("POST", `/app/${APP_ID}/view/form-screens`, {
|
return request("POST", `/app/${APP_ID}/view/form-screens`, {
|
||||||
activity_id: activityId,
|
activity_id: activityId,
|
||||||
device_type: deviceType,
|
device_type: deviceType,
|
||||||
...(instanceId ? { instance_id: instanceId } : {}),
|
...(numericInstanceId && !Number.isNaN(numericInstanceId)
|
||||||
|
? { instance_id: numericInstanceId }
|
||||||
|
: {}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user