mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-06 06:00:03 +00:00
![Jermolene](/assets/img/avatar_default.png)
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)`.