Skip to content

Commit f8e9310

Browse files
committed
prettier formatting
1 parent ddce84b commit f8e9310

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/renderer/components/Experiment/Tasks/PollingOutputTerminal.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const PollingOutputTerminal: React.FC<PollingOutputTerminalProps> = ({
4242
fitAddon.current.fit();
4343
}
4444
}, 300),
45-
[]
45+
[],
4646
);
4747

4848
const processQueue = () => {
@@ -72,7 +72,10 @@ const PollingOutputTerminal: React.FC<PollingOutputTerminalProps> = ({
7272
};
7373

7474
// Fetch the output file content directly using the Tasks-specific endpoint
75-
const outputEndpoint = chatAPI.Endpoints.Experiment.GetTasksOutputFromJob(experimentId, jobId.toString());
75+
const outputEndpoint = chatAPI.Endpoints.Experiment.GetTasksOutputFromJob(
76+
experimentId,
77+
jobId.toString(),
78+
);
7679

7780
const { data: outputData, error } = useSWR(
7881
outputEndpoint,
@@ -89,7 +92,7 @@ const PollingOutputTerminal: React.FC<PollingOutputTerminalProps> = ({
8992
revalidateOnReconnect: false,
9093
errorRetryCount: 3,
9194
errorRetryInterval: 5000,
92-
}
95+
},
9396
);
9497

9598
// Terminal initialization (only once)
@@ -148,7 +151,9 @@ const PollingOutputTerminal: React.FC<PollingOutputTerminalProps> = ({
148151
const newContent = currentLines.slice(lastContent.length);
149152
if (newContent.trim()) {
150153
// Split new content by newlines
151-
const newLines = newContent.split('\n').filter(line => line.trim());
154+
const newLines = newContent
155+
.split('\n')
156+
.filter((line) => line.trim());
152157
addLinesOneByOne(newLines);
153158
}
154159
} else {

src/renderer/components/Experiment/Tasks/ViewOutputModalStreaming.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ import { Box, Modal, ModalClose, ModalDialog, Typography } from '@mui/joy';
22
import { useExperimentInfo } from 'renderer/lib/ExperimentInfoContext';
33
import PollingOutputTerminal from './PollingOutputTerminal';
44

5-
export default function ViewOutputModalStreaming({
6-
jobId,
7-
setJobId,
8-
}) {
5+
export default function ViewOutputModalStreaming({ jobId, setJobId }) {
96
const { experimentInfo } = useExperimentInfo();
107
if (jobId === -1 || !experimentInfo) {
118
return null;

0 commit comments

Comments
 (0)