Skip to content

Commit 236df93

Browse files
yuito-itCopilot
andauthored
Update src/server/api/items.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent efcc0a1 commit 236df93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/api/items.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const itemsIndex = async (req: Express.Request, res: Express.Response) => {
2727
title: item.title,
2828
updated_at: item.updatedAt,
2929
modified: item.modified,
30-
parent: item.name.split("/").slice(0, -1) || [],
30+
parent: item.name.split("/").slice(0, -1),
3131
};
3232

3333
if (item.id) {

0 commit comments

Comments
 (0)