mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-27 16:30:03 +00:00

Fixes #2507 The problem stems from a JavaScript quirk: the fact that `({“undefined":"Me"})[undefined]` returns “Me”. The quirk is that the value `undefined` is coerced into the string “undefined” when used as an index. In this particular case, the code for `wiki.getTiddler()` was returning the tiddler with the title `”undefined”` when called with the title set to the value `undefined`. It happens that the pluginswitcher called `wiki.getTiddler(undefined)`.