From 745707fea3f4de81dc8b06504d91019b67218999 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 19 Jul 2022 10:27:36 +0100 Subject: [PATCH] Parameters widget: Be defensive about negative depths --- core/modules/widgets/parameters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/parameters.js b/core/modules/widgets/parameters.js index e0f301113..0e230303f 100644 --- a/core/modules/widgets/parameters.js +++ b/core/modules/widgets/parameters.js @@ -49,7 +49,7 @@ ParametersWidget.prototype.execute = function() { while(pointer) { if(pointer instanceof TranscludeWidget) { depth--; - if(depth === 0) { + if(depth <= 0) { break; } }