Skip to content

Commit

Permalink
Merge pull request #83 from softspring/BUNDLES-181-form-type-syfmonyr…
Browse files Browse the repository at this point in the history
…oute-is-incorrectly-hidden-by-js

Fix route params visualization
  • Loading branch information
javihgil committed May 19, 2023
2 parents 0a3f454 + 245a477 commit 67ea7d8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/scripts/admin/routes-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ window.addEventListener('load', (event) => {
});
});

[...document.querySelectorAll('[data-route-params]')].forEach((routeParamsField) => {
if (!routeParamsField.value) {
routeParamsField.closest('div').classList.add('d-none');
[...document.querySelectorAll('[data-route-params]')].forEach((routeNameField) => {
if (!routeNameField.value) {
document.getElementById(routeNameField.dataset.routeParams).closest('div').classList.add('d-none');
}
});
});
});

0 comments on commit 67ea7d8

Please sign in to comment.