1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 09:36:18 +00:00

Fix get wiki crash when serving a recipe with no tiddlers in it

Fixes #8110
This commit is contained in:
Jeremy Ruston 2024-03-27 14:41:03 +00:00
parent f2947e73b3
commit ad528d6b1f

View File

@ -79,7 +79,7 @@ exports.handler = function(request,response,state) {
});
writeTiddler({
title: "$:/state/multiwikiclient/recipe/last_tiddler_id",
text: $tw.mws.store.getRecipeLastTiddlerId(recipe_name).toString()
text: ($tw.mws.store.getRecipeLastTiddlerId(recipe_name) || 0).toString()
});
response.write(template.substring(markerPos + marker.length))
// Finish response