fix(content): guard optional durationMs and cover loop validation
This commit is contained in:
@@ -61,7 +61,7 @@ export const actionDefSchema = z
|
||||
path: ['durationMs'],
|
||||
});
|
||||
}
|
||||
if (action.kind === 'story' && !action.storyChoiceId) {
|
||||
if (action.kind === 'story' && action.storyChoiceId === undefined) {
|
||||
ctx.addIssue({
|
||||
code: 'custom',
|
||||
message: 'story actions require storyChoiceId',
|
||||
|
||||
Reference in New Issue
Block a user