Skip to content

Commit 3c78986

Browse files
committed
fix(ui): null pointer
1 parent 6bdde43 commit 3c78986

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

web/src/components/TaskLogView.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,10 @@ export default {
281281
return;
282282
}
283283
284-
const scrollContainer = this.$refs.records.$el;
284+
const scrollContainer = this.$refs.records?.$el;
285+
if (!scrollContainer) {
286+
return;
287+
}
285288
286289
// Check if the current position is already at the bottom
287290
const currentScrollTop = scrollContainer.scrollTop;

0 commit comments

Comments
 (0)