Skip to content
Snippets Groups Projects
Commit 4ecb712b authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Skip loading without window.VPUAuthToken

parent 561438a2
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,10 @@ class VPUKnowledgeBaseWebPageElementView extends VPULitElement { ...@@ -47,6 +47,10 @@ class VPUKnowledgeBaseWebPageElementView extends VPULitElement {
* Loads the data from the web page element * Loads the data from the web page element
*/ */
loadWebPageElement() { loadWebPageElement() {
if (window.VPUAuthToken === undefined || window.VPUAuthToken === "") {
return;
}
// sadly there there is no entity url without "collectionOperations" in entity KnowledgeBaseWebPageElement! // sadly there there is no entity url without "collectionOperations" in entity KnowledgeBaseWebPageElement!
const apiUrl = this.entryPointUrl + "/web_page_elements/knowledge_base_web_page_elements/" + const apiUrl = this.entryPointUrl + "/web_page_elements/knowledge_base_web_page_elements/" +
encodeURIComponent(commonUtils.base64EncodeUnicode(encodeURIComponent(this.value))) + encodeURIComponent(commonUtils.base64EncodeUnicode(encodeURIComponent(this.value))) +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment