JSFiddle - React, Tailwind, and code Playground

by graphettion

JavaScript

switch (templateNotes) {
    case '':
      /*Falls through*/
    case 'What is the purpose of the template?':
      cclBlob = {
        'id': comp.getInternalId(id),
        'label': label,
        'type': templateType,
        'json': JSON.stringify(templateParent),
        'notes': ' '
      }
      break
    default:
      cclBlob = {
        'id': comp.getInternalId(id),
        'label': label,
        'type': templateType,
        'json': JSON.stringify(templateParent),
        'notes': templateNotes
      }
      break
  }