1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-05 04:18:01 +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({ writeTiddler({
title: "$:/state/multiwikiclient/recipe/last_tiddler_id", 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)) response.write(template.substring(markerPos + marker.length))
// Finish response // Finish response