diff --git a/python/ray/dashboard/client/src/api.ts b/python/ray/dashboard/client/src/api.ts
index 35e5083ee..28fa5c82b 100644
--- a/python/ray/dashboard/client/src/api.ts
+++ b/python/ray/dashboard/client/src/api.ts
@@ -369,7 +369,7 @@ export type MemoryTableGroups = {
export type MemoryTableGroup = {
entries: MemoryTableEntry[];
summary: MemoryTableSummary;
-}
+};
export type MemoryTableResponse = {
group: MemoryTableGroups;
diff --git a/python/ray/dashboard/client/src/pages/dashboard/memory/Memory.tsx b/python/ray/dashboard/client/src/pages/dashboard/memory/Memory.tsx
index 804f98947..5f0bb7f62 100644
--- a/python/ray/dashboard/client/src/pages/dashboard/memory/Memory.tsx
+++ b/python/ray/dashboard/client/src/pages/dashboard/memory/Memory.tsx
@@ -25,19 +25,25 @@ import { StoreState } from "../../../store";
import MemoryRowGroup from "./MemoryRowGroup";
import { MemoryTableRow } from "./MemoryTableRow";
-const makeGroupedEntries = (memoryTableGroups: MemoryTableGroups, order: Order, orderBy: keyof MemoryTableEntry | null) => {
+const makeGroupedEntries = (
+ memoryTableGroups: MemoryTableGroups,
+ order: Order,
+ orderBy: keyof MemoryTableEntry | null,
+) => {
const comparator = orderBy && getComparator(order, orderBy);
return Object.entries(memoryTableGroups).map(([groupKey, group]) => {
const sortedEntries = comparator
? stableSort(group.entries, comparator)
: group.entries;
-
- return
+
+ return (
+
+ );
});
};
diff --git a/python/ray/dashboard/client/src/pages/dashboard/memory/MemoryRowGroup.tsx b/python/ray/dashboard/client/src/pages/dashboard/memory/MemoryRowGroup.tsx
index 71544058e..f58a2bc30 100644
--- a/python/ray/dashboard/client/src/pages/dashboard/memory/MemoryRowGroup.tsx
+++ b/python/ray/dashboard/client/src/pages/dashboard/memory/MemoryRowGroup.tsx
@@ -1,16 +1,8 @@
-import {
- createStyles,
- TableRow,
- Theme,
- makeStyles
-} from "@material-ui/core";
+import { createStyles, makeStyles, TableRow, Theme } from "@material-ui/core";
import AddIcon from "@material-ui/icons/Add";
import RemoveIcon from "@material-ui/icons/Remove";
import React, { useState } from "react";
-import {
- MemoryTableEntry,
- MemoryTableSummary,
-} from "../../../api";
+import { MemoryTableEntry, MemoryTableSummary } from "../../../api";
import {
ExpandableStyledTableCell,
StyledTableCell,
@@ -32,7 +24,8 @@ const useMemoryRowGroupStyles = makeStyles((theme: Theme) =>
fontFamily: "SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace",
whiteSpace: "pre",
},
- }));
+ }),
+);
type MemoryRowGroupProps = {
groupKey: string;
@@ -41,7 +34,12 @@ type MemoryRowGroupProps = {
initialExpanded: boolean;
};
-const MemoryRowGroup: React.FC = ({ groupKey, entries, summary, initialExpanded}) => {
+const MemoryRowGroup: React.FC = ({
+ groupKey,
+ entries,
+ summary,
+ initialExpanded,
+}) => {
const classes = useMemoryRowGroupStyles();
const [expanded, setExpanded] = useState(initialExpanded);
const toggleExpanded = () => setExpanded(!expanded);