diff --git a/ui/app/mirrors/create/qrep/qrep.tsx b/ui/app/mirrors/create/qrep/qrep.tsx index 06b0379b47..28a7adc282 100644 --- a/ui/app/mirrors/create/qrep/qrep.tsx +++ b/ui/app/mirrors/create/qrep/qrep.tsx @@ -134,20 +134,6 @@ export default function QRepConfigForm({ ); }, [mirrorConfig.sourcePeer]); - useEffect(() => { - if (mirrorConfig.destinationPeer?.type === DBType.BIGQUERY) { - setter((curr) => ({ - ...curr, - destinationTableIdentifier: mirrorConfig.watermarkTable?.split('.')[1], - })); - } else { - setter((curr) => ({ - ...curr, - destinationTableIdentifier: mirrorConfig.watermarkTable, - })); - } - }, [mirrorConfig.destinationPeer, mirrorConfig.watermarkTable, setter]); - useEffect(() => { // set defaults setter((curr) => ({ ...curr, ...blankQRepSetting })); @@ -281,11 +267,7 @@ export default function QRepConfigForm({ ) => handleChange(e.target.value, setting) } diff --git a/ui/app/mirrors/edit/[mirrorId]/page.tsx b/ui/app/mirrors/edit/[mirrorId]/page.tsx index 4e8a70f124..90263cc807 100644 --- a/ui/app/mirrors/edit/[mirrorId]/page.tsx +++ b/ui/app/mirrors/edit/[mirrorId]/page.tsx @@ -73,8 +73,9 @@ export default async function ViewMirror({ if (!mirrorInfo) { return
No mirror info found
; } - const mirrorConfig = FlowConnectionConfigs.decode(mirrorInfo.config_proto!); + let syncStatusChild = <>; + let resyncComponent = <>; if (mirrorStatus.cdcStatus) { let rowsSynced = syncs.reduce((acc, sync) => { if (sync.end_time !== null) { @@ -82,6 +83,13 @@ export default async function ViewMirror({ } return acc; }, 0); + const mirrorConfig = FlowConnectionConfigs.decode(mirrorInfo.config_proto!); + resyncComponent = ( + + ); syncStatusChild = ( ); @@ -102,10 +110,7 @@ export default async function ViewMirror({
{mirrorId}
- + {resyncComponent}