open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/Resources/public/ecmascript/OpenOrchestra/Application/View/Block/NewBlockListAvailableView.js

Summary

Maintainability
A
1 hr
Test Coverage

Function _addSharedBlock has 26 lines of code (exceeds 25 allowed). Consider refactoring.
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');

There are no issues that match your filters.

Category
Status