@salesforcedevs/docs-components 1.17.5-alpha1 → 1.17.5-alpha2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.17.5-alpha1",
3
+ "version": "1.17.5-alpha2",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -797,7 +797,7 @@ export default class DocXmlContent extends LightningElementWithState<{
797
797
  robotsMeta.setAttribute("content", "noindex, follow");
798
798
  headTag[0].appendChild(robotsMeta);
799
799
  }
800
- } else if(metaTag) {
800
+ } else if(metaTag && metaTag.parentNode) { // if metatag exists and if it is attached to a parent, then remove it.
801
801
  metaTag.remove();
802
802
  }
803
803
  }