fix: allow generating review link for pre-existing posts
All checks were successful
Deploy / deploy (push) Successful in 12s

Show button only when post has no approval token. Once a link exists,
only the link is shown. Server preserves status for non-draft posts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
fahed
2026-03-05 17:41:42 +03:00
parent 593adbbc0b
commit 8eaea27e89
2 changed files with 11 additions and 7 deletions

View File

@@ -436,7 +436,7 @@ export default function PostDetailPanel({ post, onClose, onSave, onDelete, brand
{!isCreateMode && (
<>
{/* Submit for Review */}
{(form.status === 'draft' || form.status === 'rejected') && (
{!reviewUrl && (
<button
onClick={handleSubmitReview}
disabled={submittingReview}