You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Only a present-but-empty/whitespace class is rejected here. An absent
609
+
// (`undefined`) class is intentionally left untouched — that case is
610
+
// out of scope for this validation and handled separately.
611
+
if(
612
+
templateDefinition.class!==undefined&&
613
+
!templateDefinition.class.trim()
614
+
){
615
+
KetcherLogger.error(
616
+
`Editor::updateMonomersLibrary: Load of monomer group template "${templateDefinition.name}" (template: ${templateRef.$ref}) has failed. ${MONOMER_GROUP_TEMPLATE_CLASS_EMPTY_ERROR_MESSAGE} The template was not added to the library.`,
exportconstMONOMER_GROUP_TEMPLATE_NAME_MAX_LENGTH_ERROR_MESSAGE=`The monomer group template name must not exceed ${MONOMER_GROUP_TEMPLATE_NAME_MAX_LENGTH} characters.`;
0 commit comments