This commit is contained in:
Dmitry Vasilev
2022-10-17 16:07:38 +08:00
parent 3bade9e3e6
commit 901c96a960
2 changed files with 4 additions and 1 deletions

View File

@@ -769,6 +769,9 @@ const select_arguments = (state, with_focus = true) => {
}
const navigate_logs_increment = (state, increment) => {
if(state.logs.logs.length == 0) {
return {state}
}
const index =
Math.max(
Math.min(

View File

@@ -73,7 +73,7 @@ export class Logs {
}
if(prev_logs?.log_position != logs.log_position) {
if(prev_logs?.log_position != null) {
if(prev_logs?.logs == logs.logs && prev_logs?.log_position != null) {
this.el.children[prev_logs.log_position].classList.remove('active')
}
if(logs.log_position != null) {