Open adamjohnson opened 3 years ago
If you absolutely cannot stand seeing the content inside the r:if_childless
tag while you're developing locally, you can add the following JS to hide the "No profiles found" message (just don't commit it to the repo!):
var PROFILES = {
getEmptyText: document.querySelectorAll('.no-profiles-found'),
removeMessage: function () {
PROFILES.getEmptyText.forEach(function (item) {
item.remove();
});
}
};
document.addEventListener('DOMContentLoaded', PROFILES.removeMessage);
Be sure to change/add the .no-profiles-found
class to target whatever you want hidden.
Steps to reproduce the issue
Results
Even though there are two pages in the
pages
key in mock data, the contents of this tag are output.Expected results
If there is content in the
pages
key inmock_data.yml
, the tag should not output anything.This bug/request is very low priority.