Grupo-AFAL/frontend-helpers

View on GitHub
javascript/src/controllers/dynamic-fields-controller.js

Summary

Maintainability
B
4 hrs
Test Coverage
F
51%

Showing 2 of 2 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

moveUp (e) {
e.preventDefault()
 
const fieldsContainer1 = e.target.closest(this.fieldsSelectorValue)
const fieldsContainer2 = previousSibling(
Severity: Major
Found in javascript/src/controllers/dynamic-fields-controller.js and 1 other location - About 2 hrs to fix
javascript/src/controllers/dynamic-fields-controller.js on lines 70..81

Similar blocks of code found in 2 locations. Consider refactoring.
Open

moveDown (e) {
e.preventDefault()
 
const fieldsContainer1 = e.target.closest(this.fieldsSelectorValue)
const fieldsContainer2 = nextSibling(
Severity: Major
Found in javascript/src/controllers/dynamic-fields-controller.js and 1 other location - About 2 hrs to fix
javascript/src/controllers/dynamic-fields-controller.js on lines 57..68
Category
Status