Fix: handle empty metadata description
Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
@@ -56,5 +56,5 @@ async function getModelMeta(modelTitle) {
|
||||
"action": "parse",
|
||||
"page": modelTitle
|
||||
});
|
||||
return JSON.parse($(metaApiResp.parse.text['*']).find('pre').text())
|
||||
return JSON.parse($(metaApiResp.parse.text['*']).find('pre').text() || '{}')
|
||||
}
|
||||
Reference in New Issue
Block a user