diff --git a/src/store/story-formats/getters.ts b/src/store/story-formats/getters.ts index a61f1047c..35a41806a 100644 --- a/src/store/story-formats/getters.ts +++ b/src/store/story-formats/getters.ts @@ -78,6 +78,8 @@ export function newestFormatNamed(formats: StoryFormat[], name: string) { if (!result || gt(format.version, result.version)) { return format; } + + return result; }, undefined); }