Fix an issue where server foreground/background color was not getting applied after jQuery changes. #5701

This commit is contained in:
Aditya Toshniwal
2023-03-21 17:39:37 +05:30
committed by GitHub
parent 8fbe2fb8f2
commit 64ddfc0eb7
3 changed files with 7 additions and 7 deletions

View File

@@ -838,7 +838,7 @@ define('pgadmin.browser.node', [
`;
// Prepare dynamic style tag using template
document.querySelector(`style[id="${dynamic_class}"]`).remove();
document.querySelector(`style[id="${dynamic_class}"]`)?.remove();
document.head.appendChild(styleTag);
// Add dynamic class to the tree node.
pgBrowser.tree.addCssClass(item, dynamic_class);