From 392ecd69f072fa132b8ec553450a0578e906effa Mon Sep 17 00:00:00 2001 From: Grishka Date: Fri, 28 Oct 2022 23:31:54 +0300 Subject: [PATCH] Fix JS error --- src/main/web/common_ts/Helpers.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/web/common_ts/Helpers.ts b/src/main/web/common_ts/Helpers.ts index be4765f5..8b743a5b 100644 --- a/src/main/web/common_ts/Helpers.ts +++ b/src/main/web/common_ts/Helpers.ts @@ -714,6 +714,9 @@ function likeOnMouseChange(wrap:HTMLElement, entered:boolean):void{ btn.customData.popoverTimeout=setTimeout(()=>{ delete btn.customData.popoverTimeout; ajaxGet(btn.getAttribute("data-popover-url"), (resp:any)=>{ + if(!resp.content){ + return; + } if(!popover){ popover=new Popover(wrap.querySelector(".popoverPlace")); popover.setOnClick(()=>{