Skip to content

Commit

Permalink
chore: fix typo in OperationTree
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Sep 8, 2024
1 parent 5293631 commit a28639a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions webui/src/components/OperationTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const OperationTree = ({
setBackups(flows);
},
100,
{ leading: true, trailing: true },
{ leading: true, trailing: true }
);

logState.subscribe((ids, flowIDs, event) => {
Expand All @@ -86,7 +86,7 @@ export const OperationTree = ({
) {
for (const flowID of flowIDs) {
const displayInfo = displayInfoForFlow(
logState.getByFlowID(flowID) || [],
logState.getByFlowID(flowID) || []
);
if (!displayInfo.hidden) {
backupInfoByFlowID.set(flowID, displayInfo);
Expand Down Expand Up @@ -168,7 +168,7 @@ export const OperationTree = ({
>
<BackupView backup={backup} />
</Modal>
,{backupTree}
{backupTree}
</>
);
}
Expand All @@ -192,7 +192,7 @@ export const OperationTree = ({
const treeLeafCache = new WeakMap<FlowDisplayInfo, OpTreeNode>();
const buildTree = (
operations: FlowDisplayInfo[],
isForPlanView: boolean,
isForPlanView: boolean
): { tree: OpTreeNode[]; expanded: React.Key[] } => {
const buildTreeInstanceID = (operations: FlowDisplayInfo[]): OpTreeNode[] => {
const grouped = _.groupBy(operations, (op) => {
Expand Down Expand Up @@ -250,7 +250,7 @@ const buildTree = (

const buildTreeDay = (
keyPrefix: string,
operations: FlowDisplayInfo[],
operations: FlowDisplayInfo[]
): OpTreeNode[] => {
const grouped = _.groupBy(operations, (op) => {
return localISOTime(op.displayTime).substring(0, 10);
Expand Down Expand Up @@ -303,13 +303,13 @@ const buildTree = (
entries: OpTreeNode[],
budget: number,
d1: number,
d2: number,
d2: number
) => {
let expanded: React.Key[] = [];
const h2 = (
entries: OpTreeNode[],
curDepth: number,
budget: number,
budget: number
): number => {
if (curDepth >= d2) {
for (const entry of entries) {
Expand Down Expand Up @@ -455,7 +455,7 @@ const BackupView = ({ backup }: { backup?: FlowDisplayInfo }) => {
planId: backup.planID!,
repoId: backup.repoID!,
snapshotId: backup.snapshotID!,
}),
})
);
alertApi!.success("Snapshot forgotten.");
} catch (e) {
Expand All @@ -464,7 +464,7 @@ const BackupView = ({ backup }: { backup?: FlowDisplayInfo }) => {
};

const snapshotInFlow = backup?.operations.find(
(op) => op.op.case === "operationIndexSnapshot",
(op) => op.op.case === "operationIndexSnapshot"
);

const deleteButton =
Expand All @@ -489,7 +489,7 @@ const BackupView = ({ backup }: { backup?: FlowDisplayInfo }) => {
selector: new OpSelector({
ids: backup.operations.map((op) => op.id),
}),
}),
})
);
}}
>
Expand Down

0 comments on commit a28639a

Please sign in to comment.