Omit empty instance_id from form-screens payload
This commit is contained in:
parent
8205cdbef2
commit
78987a6066
@ -256,8 +256,8 @@ export function getFormScreen(
|
|||||||
): Promise<FormScreenResponse> {
|
): Promise<FormScreenResponse> {
|
||||||
return request("POST", `/app/${APP_ID}/view/form-screens`, {
|
return request("POST", `/app/${APP_ID}/view/form-screens`, {
|
||||||
activity_id: activityId,
|
activity_id: activityId,
|
||||||
instance_id: instanceId || "",
|
|
||||||
device_type: deviceType,
|
device_type: deviceType,
|
||||||
|
...(instanceId ? { instance_id: instanceId } : {}),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user