(padID: string, field: string)
| 1043 | |
| 1044 | // checks if a padID is part of a group |
| 1045 | const checkGroupPad = (padID: string, field: string) => { |
| 1046 | // ensure this is a group pad |
| 1047 | if (padID && padID.indexOf('$') === -1) { |
| 1048 | throw new CustomError( |
| 1049 | `You can only get/set the ${field} of pads that belong to a group`, 'apierror'); |
| 1050 | } |
| 1051 | }; |