1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-02 13:30:26 +00:00

Parameters widget: Be defensive about negative depths

This commit is contained in:
jeremy@jermolene.com 2022-07-19 10:27:36 +01:00
parent d4e0eb193b
commit 745707fea3

View File

@ -49,7 +49,7 @@ ParametersWidget.prototype.execute = function() {
while(pointer) {
if(pointer instanceof TranscludeWidget) {
depth--;
if(depth === 0) {
if(depth <= 0) {
break;
}
}