Skip to content
This repository was archived by the owner on Dec 2, 2024. It is now read-only.

Commit e47db96

Browse files
committed
fix: error when close terminal
1 parent 8a154c9 commit e47db96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/renderer/src/components/app/bottom/BottomTerminal.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export default {
4343
ipcRenderer
4444
.callMain('terminal:log', props.activeTerminal)
4545
.then((data) => {
46-
terminal.reset();
47-
terminal.write(data.log);
46+
terminal?.reset();
47+
terminal?.write(data?.log ?? '');
4848
isDone.value = true;
4949
});
5050
}

0 commit comments

Comments
 (0)