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:
parent
d4e0eb193b
commit
745707fea3
@ -49,7 +49,7 @@ ParametersWidget.prototype.execute = function() {
|
||||
while(pointer) {
|
||||
if(pointer instanceof TranscludeWidget) {
|
||||
depth--;
|
||||
if(depth === 0) {
|
||||
if(depth <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user