fix(curriculum): update editable regions for step 47 of calorie counter (#54424)

This commit is contained in:
Steven Primeaux 2024-04-17 11:19:48 -04:00 committed by GitHub
parent ff083caf50
commit 7ba214adf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,12 +206,12 @@ function isInvalidInput(str) {
return str.match(regex);
}
--fcc-editable-region--
function addEntry() {
const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
const entryNumber = targetInputContainer.querySelectorAll('input[type="text"]').length;
const HTMLString = `
--fcc-editable-region--
<label>Entry ${entryNumber} Name</label>`;
--fcc-editable-region--
}
--fcc-editable-region--
```