From bcbc088fb2046efa09a1045b0516d86eff85f173 Mon Sep 17 00:00:00 2001 From: Arne Morken Date: Wed, 4 Dec 2024 17:51:31 +0100 Subject: [PATCH] Do not check for empty par_id in refreshAddLinkButton(). --- view/anyView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/anyView.js b/view/anyView.js index 945559e..c0e7cb7 100644 --- a/view/anyView.js +++ b/view/anyView.js @@ -2589,7 +2589,7 @@ $.any.anyView.prototype.refreshNewItemButton = function (opt) // By default calls showLinkMenu $.any.anyView.prototype.refreshAddLinkButton = function (opt) { - if (!opt || !opt.par_id || !this.options) + if (!opt || !this.options) return null; if (!this.options.linkIcons) return;