Fix: Remove duplicate success variable in admin orders page
- Fixed duplicate const definition that was causing build error - Keep single success message handler Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
809cd16ec5
commit
5a427bb7cf
@@ -93,7 +93,8 @@
|
|||||||
"mcp__visualize__read_me",
|
"mcp__visualize__read_me",
|
||||||
"mcp__visualize__show_widget",
|
"mcp__visualize__show_widget",
|
||||||
"Bash(git branch *)",
|
"Bash(git branch *)",
|
||||||
"Bash(git remote *)"
|
"Bash(git remote *)",
|
||||||
|
"Bash(git commit -m 'Fix: Remove duplicate success variable in admin orders page *)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ const SUCCESS_MESSAGES: Record<string, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export default async function OrdersPage({ searchParams }: { searchParams: { archived?: string; personalised?: string; success?: string } }) {
|
export default async function OrdersPage({ searchParams }: { searchParams: { archived?: string; personalised?: string; success?: string } }) {
|
||||||
// Handle success messages from other pages
|
|
||||||
const success = searchParams.success ? SUCCESS_MESSAGES[searchParams.success] : null;
|
|
||||||
await autoArchiveOldOrders();
|
await autoArchiveOldOrders();
|
||||||
|
|
||||||
const success = searchParams.success ? SUCCESS_MESSAGES[searchParams.success] : null;
|
const success = searchParams.success ? SUCCESS_MESSAGES[searchParams.success] : null;
|
||||||
|
|||||||
Reference in New Issue
Block a user