From: Vincent Vanwaelscappel Date: Tue, 13 May 2025 10:23:07 +0000 (+0200) Subject: wip #7534 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7f2e7a97bb0aa330d3a8c21ecc1a70b97c3deb4f;p=fluidbook-toolbox.git wip #7534 --- diff --git a/resources/linkeditor-stable/js/linkeditor.form.js b/resources/linkeditor-stable/js/linkeditor.form.js index 425d44c15..71de8a470 100644 --- a/resources/linkeditor-stable/js/linkeditor.form.js +++ b/resources/linkeditor-stable/js/linkeditor.form.js @@ -320,7 +320,11 @@ LinkeditorForm.prototype = { let f = $(form).find('[name=' + k + ']'); let bm = f.closest('.bunchmultiple'); if (bm.length > 0) { - bm.data('values', JSON.parse(v)); + try { + bm.data('values', JSON.parse(v)); + } catch (e) { + bm.data('values', []); + } } else { f.val(v); }