Skip to content

Commit

Permalink
fix: draft field order
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Oct 15, 2024
1 parent d6d10db commit b0b5eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/transformers/path-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default defineTransformer({
return <ParsedContent> {
_path: filePath,
_dir: filePath.split('/').slice(-2)[0],
_draft: isDraft(_path) || content._draft || content.draft,
_draft: content._draft || content.draft || isDraft(_path),
_partial: isPartial(_path),
_locale,
...content,
Expand Down

0 comments on commit b0b5eb2

Please sign in to comment.