Skip to content

Commit

Permalink
yet another ! typo
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jun 21, 2024
1 parent 4fd8453 commit 8c0ff58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ui/app/api/mirrors/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ export async function GET(_request: Request) {

const flows: MirrorsListing[] = mirrors?.map((mirror) => ({
id: mirror.id,
workflow_id: mirror.workflow_id,
workflowId: mirror.workflow_id,
name: mirror.name,
sourceName: mirror.sourcePeer.name,
sourceType: mirror.sourcePeer.type,
destinationName: mirror.destinationPeer.name,
destinationType: mirror.destinationPeer.type,
createdAt: mirror.created_at,
isCdc: !!mirror.query_string,
isCdc: !mirror.query_string,
}));
return new Response(JSON.stringify(flows));
}
2 changes: 1 addition & 1 deletion ui/app/dto/MirrorsDTO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export type MirrorLogsType = {

export type MirrorsListing = {
id: number;
workflow_id: string | null;
workflowId: string | null;
name: string;
sourceName: string;
sourceType: number;
Expand Down
8 changes: 4 additions & 4 deletions ui/app/mirrors/tables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function CDCFlows({ cdcFlows }: { cdcFlows: MirrorsListing[] }) {
{cdcFlows.map((flow) => (
<TableRow key={flow.id}>
<TableCell>
<MirrorLink flowName={flow?.name} />
<MirrorLink flowName={flow.name} />
</TableCell>
<TableCell>
<PeerButton
Expand All @@ -85,7 +85,7 @@ export function CDCFlows({ cdcFlows }: { cdcFlows: MirrorsListing[] }) {
<DropDialog
mode='MIRROR'
dropArgs={{
workflowId: flow.workflow_id,
workflowId: flow.workflowId,
flowJobName: flow.name,
sourcePeer: flow.sourceName,
destinationPeer: flow.destinationName,
Expand Down Expand Up @@ -149,7 +149,7 @@ export function QRepFlows({
{qrepFlows.map((flow) => (
<TableRow key={flow.id}>
<TableCell>
<MirrorLink flowName={flow?.name} />
<MirrorLink flowName={flow.name} />
</TableCell>
<TableCell>
<PeerButton
Expand All @@ -170,7 +170,7 @@ export function QRepFlows({
<DropDialog
mode='MIRROR'
dropArgs={{
workflowId: flow.workflow_id,
workflowId: flow.workflowId,
flowJobName: flow.name,
sourcePeer: flow.sourceName,
destinationPeer: flow.destinationName,
Expand Down

0 comments on commit 8c0ff58

Please sign in to comment.