BackofficeBundle/Resources/public/ecmascript/OpenOrchestra/Application/View/Block/NewBlockListAvailableView.js
Function _addSharedBlock
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_addSharedBlock(event) {
let blockId = $(event.currentTarget).attr('data-block-id');
let block = this._blocks.findWhere({'id': blockId});
if (typeof block === 'undefined') {
throw new ApplicationError('Block not found');
- Create a ticketCreate a ticket