Skip to content

Commit

Permalink
Update dm-template-handler.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 16, 2024
1 parent 815718e commit 192bd85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/dm-template-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ function hideEmptyElements() {
dmElements.forEach(dm => {
const dmValue = dm.querySelector('.dm-value');
if (dmValue && !dmValue.textContent.trim()) {
dm.classList.add('dm-hidden');
dm.style.display = 'none';
}
});
}
window.addEventListener('load', hideEmptyElements);


// used in auto-interaction
const showRelevantFields = () => {
const toolType = document.querySelector('[data-tool-type]').textContent.toLowerCase();
Expand Down

0 comments on commit 192bd85

Please sign in to comment.