Fix undefined params reference in send button
Use designId prop instead of undefined params variable. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Haiku 4.5
parent
6f07c38145
commit
07b43ac53d
@@ -1614,7 +1614,7 @@ export default function DesignCanvas({
|
|||||||
</button>
|
</button>
|
||||||
) : isAdminEditing ? (
|
) : isAdminEditing ? (
|
||||||
<button
|
<button
|
||||||
onClick={() => handleSendToCustomerForReview(params?.id || '')}
|
onClick={() => handleSendToCustomerForReview(designId || '')}
|
||||||
disabled={submittingForApproval}
|
disabled={submittingForApproval}
|
||||||
className={`flex-1 px-6 py-3 text-sm font-medium transition-colors ${
|
className={`flex-1 px-6 py-3 text-sm font-medium transition-colors ${
|
||||||
submittingForApproval
|
submittingForApproval
|
||||||
|
|||||||
Reference in New Issue
Block a user