method to get the label ```const getPublishLabel =...
# orm-help
a
method to get the label
Copy code
const getPublishLabel = (mutationName) => {
  const labels = {
    createSubmission: ['SUBMISSION_CREATED', 'submission'],
    updateSubmission: ['SUBMISSION_UPDATED', 'submission'],
    deleteSubmission: ['SUBMISSION_DELETED', 'submission'],
  }

  if(!!labels[mutationName]) return labels[mutationName]
  return false
}
r
@aqib đź‘‹ It seems your label is going as
undefined
someplace. I can’t confirm but that’s most likely the case.
a
Even if I hardcode the label still I am getting the same error.