Commits

Jan Borsodi committed 330dacb Merge

Merged with chrisk-hob-dev.

Comments (0)

Files changed (1)

templates/js/js-message-classes.mako

 ${INDENT * 2}return new cls.${service.name}["${version}"].${field.typename()}(item);
 ${INDENT}});
     % elif field.message and isinstance(field.message, proto.Message):
-${INDENT}this.${field.name} = arr[${str(field.number - 1)}] ? new cls.${service.name}["${version}"].${field.typename()}(arr[${str(field.number - 1)}]) || null;
+${INDENT}this.${field.name} = arr[${str(field.number - 1)}] ? new cls.${service.name}["${version}"].${field.typename()}(arr[${str(field.number - 1)}]) : null;
     % else:
       % if field.message and isinstance(field.message, proto.Enum):
 ${INDENT}// cls.${service.name}["${version}"].${message.name}.${field.message.name}