mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-19 20:40:02 +00:00
Fixed problem with retrieving non-existent list tiddlers
This commit is contained in:
parent
7c76ec02c2
commit
ba4e140147
@ -358,7 +358,7 @@ Return the content of a tiddler as an array containing each line
|
|||||||
*/
|
*/
|
||||||
exports.getTiddlerList = function(title) {
|
exports.getTiddlerList = function(title) {
|
||||||
var tiddler = this.getTiddler(title);
|
var tiddler = this.getTiddler(title);
|
||||||
if(tiddler.fields.text && tiddler.fields.text.length > 0) {
|
if(tiddler && tiddler.fields.text && tiddler.fields.text.length > 0) {
|
||||||
return tiddler.fields.text.split("\n");
|
return tiddler.fields.text.split("\n");
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user