Skip to content

Commit d946fa6

Browse files
committedMar 24, 2025
refactor: deprecate-array-prototype-extensions - addObject()
1 parent 305f2d4 commit d946fa6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

Diff for: ‎admin/app/components/certification-centers/creation-form.gjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default class CertificationCenterForm extends Component {
5757
if (habilitations.includes(habilitation)) {
5858
habilitations.removeObject(habilitation);
5959
} else {
60-
habilitations.addObject(habilitation);
60+
habilitations.push(habilitation);
6161
}
6262
}
6363

Diff for: ‎admin/app/components/certification-centers/information-edit.gjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export default class InformationEdit extends Component {
4545
if (habilitations.includes(habilitation)) {
4646
habilitations.removeObject(habilitation);
4747
} else {
48-
habilitations.addObject(habilitation);
48+
habilitations.push(habilitation);
4949
}
5050
}
5151

Diff for: ‎admin/app/controllers/authenticated/certifications/certification/informations.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default class CertificationInformationsController extends Controller {
169169
competence[propName] = parseInt(value);
170170
}
171171
} else if (value.trim().length > 0) {
172-
competences.addObject({
172+
competences.push({
173173
competence_code: competenceCode,
174174
[propName]: parseInt(value),
175175
area_code: competenceCode.substr(0, 1),

0 commit comments

Comments
 (0)
Failed to load comments.