Reveal widget: faulty logic for default handling

@BurningTreeC I think this might have been a typo in your recent refactorings; if you look back at an old version such as https://github.com/Jermolene/TiddlyWiki5/blob/c0c1b557ebcd76fecc7b305115cbabe921b38e0d/core/modules/widgets/reveal.js then there is no sign of this fallback.

Fixes #3874
This commit is contained in:
Jermolene
2019-03-20 16:50:34 +00:00
parent a01dc6cb3d
commit 02ae8969b2
+1 -1
View File
@@ -119,7 +119,7 @@ Read the state tiddler
RevealWidget.prototype.readState = function() {
// Read the information from the state tiddler
var state,
defaultState = this["default"] || this.getVariable("currentTiddler");
defaultState = this["default"];
if(this.stateTitle) {
var stateTitleTiddler = this.wiki.getTiddler(this.stateTitle);
if(this.stateField) {