@@ -1,3 +1,4 @@
|
||||
import { ClassificationReview } from '@/components/opportunity-classification';
|
||||
import { createOperationKey } from '@/lib/operation-key';
|
||||
import { valueText } from '@/lib/value-text';
|
||||
import OpportunityProfileActions from '@/components/opportunity-profile-actions';
|
||||
@@ -221,9 +222,16 @@ export default function OpportunityDraft({
|
||||
);
|
||||
} finally {
|
||||
setBusy(false);
|
||||
requestAnimationFrame(() =>
|
||||
document.getElementById('opportunity-result')?.focus(),
|
||||
);
|
||||
requestAnimationFrame(() => {
|
||||
const invalidAssociation =
|
||||
document.querySelector<HTMLSelectElement>(
|
||||
'[data-association-index][aria-invalid="true"]',
|
||||
);
|
||||
(
|
||||
invalidAssociation ??
|
||||
document.getElementById('opportunity-result')
|
||||
)?.focus();
|
||||
});
|
||||
}
|
||||
}
|
||||
return (
|
||||
@@ -273,6 +281,9 @@ export default function OpportunityDraft({
|
||||
</p>
|
||||
</section>
|
||||
)}
|
||||
{profileMode && record && (
|
||||
<ClassificationReview id={record.id} refreshToken={token} />
|
||||
)}
|
||||
{profileMode && record && readOnly && canEditDraft && (
|
||||
<Link
|
||||
className="block underline"
|
||||
@@ -876,10 +887,10 @@ export default function OpportunityDraft({
|
||||
setData((prior) => ({
|
||||
...prior,
|
||||
canonical: {
|
||||
...((prior.canonical as Record<
|
||||
...(prior.canonical as Record<
|
||||
string,
|
||||
unknown
|
||||
>) ?? {}),
|
||||
>),
|
||||
internal_contact_id: contact.id,
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user