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:
parent
f2947e73b3
commit
ad528d6b1f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user