Don't try to process lazily loaded plugins

Fixes #4900
This commit is contained in:
jeremy@jermolene.com 2020-10-23 15:37:20 +01:00
parent d254612826
commit 794dfb96f2
1 changed files with 1 additions and 1 deletions

View File

@ -1272,7 +1272,7 @@ $tw.Wiki = function(options) {
$tw.utils.each(titles || getTiddlerTitles(),function(title) {
var tiddler = tiddlers[title];
if(tiddler) {
if(tiddler.fields.type === "application/json" && tiddler.hasField("plugin-type")) {
if(tiddler.fields.type === "application/json" && tiddler.hasField("plugin-type") && tiddler.fields.text) {
pluginInfo[tiddler.fields.title] = JSON.parse(tiddler.fields.text);
results.modifiedPlugins.push(tiddler.fields.title);
}