make sure container exists

This commit is contained in:
liamcottle
2024-07-07 20:43:37 +12:00
parent 0e983f6456
commit a697cf4777

View File

@@ -1527,7 +1527,9 @@
scrollMessagesToBottom: function() {
Vue.nextTick(() => {
const container = document.getElementById("messages");
container.scrollTop = container.scrollHeight;
if(container){
container.scrollTop = container.scrollHeight;
}
});
},
async getAppInfo() {