mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-03 23:24:07 +00:00
fix contains operator RSOD if created field is accessed (#8931)
This commit is contained in:
parent
867fad030e
commit
2a2d998bef
@ -40,10 +40,10 @@ exports.getFieldString = function(field,defaultValue) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Get the value of a field as a list
|
Get the value of a field as an array / list
|
||||||
*/
|
*/
|
||||||
exports.getFieldList = function(field) {
|
exports.getFieldList = function(field) {
|
||||||
var value = this.fields[field];
|
var value = this.getFieldString(field,null);
|
||||||
// Check for a missing field
|
// Check for a missing field
|
||||||
if(value === undefined || value === null) {
|
if(value === undefined || value === null) {
|
||||||
return [];
|
return [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user