Fix email event log crash
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup>
|
||||
|
||||
import { ref, reactive, onMounted, watch, useTemplateRef } from 'vue';
|
||||
import { ref, reactive, onMounted, watch, useTemplateRef, nextTick } from 'vue';
|
||||
import { Button, TextInput, MultiSelect } from '@cloudron/pankow';
|
||||
import { useDebouncedRef, prettyEmailAddresses, prettyLongDate } from '@cloudron/pankow/utils';
|
||||
import MailModel from '../models/MailModel.js';
|
||||
@@ -36,6 +36,12 @@ async function onRefresh() {
|
||||
|
||||
eventlogs.value = result;
|
||||
|
||||
await nextTick();
|
||||
|
||||
while (eventlogContainer.value && eventlogContainer.value.scrollHeight <= eventlogContainer.value.offsetHeight) {
|
||||
await fetchMore();
|
||||
}
|
||||
|
||||
refreshBusy.value = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user