diff --git a/client/models/case.js b/client/models/case.js index 761d59c..6e0d640 100644 --- a/client/models/case.js +++ b/client/models/case.js @@ -41,7 +41,7 @@ module.exports = { const { workflowSlug, actionSlug, payload, caseId, token } = data let uri = `${endpoint}${workflowSlug}/` if (caseId) uri += `${caseId}/` - if (actionSlug) uri += `${actionSlug}/` + if (caseId && actionSlug) uri += `${actionSlug}/` if (token) uri += `?token=${token}` http.post(uri, { json: payload }, (err, response, body) => {