Skip to content

Commit 84ff159

Browse files
committed
fix genuine bug noticed by newer typescript
1 parent 7e8d746 commit 84ff159

File tree

2 files changed

+31
-42
lines changed

2 files changed

+31
-42
lines changed

src/packages/frontend/frame-editors/latex-editor/build.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export const Build: React.FC<Props> = React.memo((props) => {
143143
// const y: ExecOutput | undefined = job_infos.get(stage)?.toJS();
144144

145145
if (!x) return;
146-
const value = x.stdout ?? "" + x.stderr ?? "";
146+
const value = (x.stdout ?? "") + (x.stderr ?? "");
147147
if (!value) return;
148148
// const time: number | undefined = x.get("time");
149149
// const time_str = time ? `(${(time / 1000).toFixed(1)} seconds)` : "";
@@ -235,7 +235,7 @@ export const Build: React.FC<Props> = React.memo((props) => {
235235
if (!info || info.type !== "async" || info.status !== "running") return;
236236
const stats_str = getResourceUsage(info.stats, "last");
237237
const start = info.start;
238-
logTail = tail(info.stdout ?? "" + info.stderr ?? "", 6);
238+
logTail = tail((info.stdout ?? "") + (info.stderr ?? ""), 6);
239239
isLongRunning ||=
240240
typeof start === "number" &&
241241
webapp_client.server_time() - start > WARN_LONG_RUNNING_S * 1000;

src/packages/pnpm-lock.yaml

Lines changed: 29 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)