From d4e0eb193bfc3bcd6b41ca7342886babb109a371 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Tue, 19 Jul 2022 10:26:20 +0100 Subject: [PATCH] Slot widget: be more defensive about negative depth values --- core/modules/widgets/slot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/widgets/slot.js b/core/modules/widgets/slot.js index 8ca6992d7..aa9994a03 100644 --- a/core/modules/widgets/slot.js +++ b/core/modules/widgets/slot.js @@ -50,7 +50,7 @@ SlotWidget.prototype.execute = function() { while(pointer) { if(pointer instanceof TranscludeWidget) { depth--; - if(depth === 0) { + if(depth <= 0) { break; } }